CN110191223B - Method for adding mail contact and electronic equipment - Google Patents

Method for adding mail contact and electronic equipment Download PDF

Info

Publication number
CN110191223B
CN110191223B CN201910346380.7A CN201910346380A CN110191223B CN 110191223 B CN110191223 B CN 110191223B CN 201910346380 A CN201910346380 A CN 201910346380A CN 110191223 B CN110191223 B CN 110191223B
Authority
CN
China
Prior art keywords
contact
application
mail
mailbox
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910346380.7A
Other languages
Chinese (zh)
Other versions
CN110191223A (en
Inventor
易婕
李辰淑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910346380.7A priority Critical patent/CN110191223B/en
Publication of CN110191223A publication Critical patent/CN110191223A/en
Priority to PCT/CN2020/085346 priority patent/WO2020216144A1/en
Application granted granted Critical
Publication of CN110191223B publication Critical patent/CN110191223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27453Directories allowing storage of additional subscriber data, e.g. metadata
    • H04M1/27457Management thereof, e.g. manual editing of data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/30Types of network names
    • H04L2101/37E-mail addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Library & Information Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a method for adding mail contacts and electronic equipment, wherein the method comprises the following steps: the electronic equipment acquires one or more contacts in a first application and contact information associated with the one or more contacts; the electronic equipment determines at least one contact from the one or more contact information according to the contact information, and determines that the mailbox address of each contact in the at least one contact is stored in the first application; the electronic device automatically adds the mailbox address for each of the at least one contact to a first set of mailbox addresses in the mail application. According to the method for adding the mail contact persons, the electronic equipment can automatically add the mailbox addresses of some important contact persons into the first mailbox address set in the mail application, so that the operation complexity of a user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic equipment is improved, and the user experience is improved.

Description

Method for adding mail contact and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and more particularly, to a method for adding email contacts and an electronic device.
Background
Many users view some important contact mails in a specific mail folder, and need to manually input a mailbox address or enter a mail contact list to add a mail contact needing attention to a VIP (VIP) mail contact, so that the mails of the people can be viewed in the VIP mail folder corresponding to the VIP mail contact.
In the existing process of adding VIP mail contacts, a user needs to manually input or add the VIP mail contacts, so that the problems of complex operation and the like can be caused, and the user experience is poor.
Disclosure of Invention
The method for adding the mail contact and the electronic device are beneficial to improving the operation efficiency of the user and the intelligent degree of the electronic device and improving the user experience.
In a first aspect, a method for adding a mail contact is provided, and the method is applied to an electronic device, and includes: the method comprises the steps that electronic equipment obtains a first contact person in first application and first contact person information related to the first contact person, wherein the first application is an application except a mail application in the electronic equipment; when the first contact information meets a preset condition and one or more mailbox addresses of the first contact are stored in the first application, the electronic equipment automatically adds the one or more mailbox addresses to a first mailbox address set in the mail application.
In the embodiment of the application, the electronic device can acquire the first contact person and the first contact person information associated with the first contact person from the applications except the mail application, and by judging that the first contact person information meets the preset condition and that the first contact person corresponds to one or more mailbox addresses, the electronic device can automatically add the one or more mailbox addresses into the first mailbox address set in the mail application, so that the user is prevented from manually adding the first contact person information, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic device is improved, and the user experience is improved.
With reference to the first aspect, in some implementations of the first aspect, the first application is a phone or a contact application, the first contact information is call data of the first contact stored in the phone or the contact application, and the preset condition is that a call frequency with the first contact is greater than or equal to a first frequency threshold within a first time period.
According to the method for adding the mail contact persons, the electronic equipment can automatically add the contact persons with high conversation frequency into the first mailbox address set of the mail application, the manual adding of a user is avoided, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic equipment is improved, and the user experience is improved.
With reference to the first aspect, in certain implementations of the first aspect, the first application is a phone or a contact application, the first contact information is short message data of the first contact stored in the phone or the contact application, and the preset condition is that a frequency of interworking short messages with the first contact is greater than or equal to a second frequency threshold in a second time period.
According to the method for adding the mail contact persons, the electronic equipment can automatically add the contact persons with high short message communication frequency with the user to the first mailbox address set of the mail application, so that the user is prevented from manually adding the contact persons, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic equipment is improved, and the user experience is improved.
With reference to the first aspect, in some implementations of the first aspect, the first application is a contact application, the first contact information is whether the first contact stored in the contact application is a favorite contact, and the preset condition is that the first contact is a favorite contact.
According to the method for adding the mail contact persons, the electronic equipment can automatically add the contact persons collected by the user into the first mailbox address set of the mail application, the user is prevented from manually adding the contact persons, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic equipment is improved, and the user experience is improved.
In some possible implementation manners, the first application is a social application, the first contact information is a frequency of interaction with the first contact in the social application, and the preset condition is that the frequency is greater than or equal to a preset frequency threshold.
Illustratively, the social application is a Facebook, Twitter, QQ, or MSN application.
Illustratively, the interaction with the first contact includes interworking messages with the first contact or the frequency of making a call (e.g., a video call or a voice call, etc.).
With reference to the first aspect, in certain implementations of the first aspect, before the electronic device automatically adds one or more mailbox addresses corresponding to the first contact to the first set of mailbox addresses in the mail application, the method further includes: the electronic device determines that the one or more mailbox addresses are not in the first set of mailbox addresses.
With reference to the first aspect, in some implementations of the first aspect, the automatically adding one or more mailbox addresses corresponding to the first contact to a first set of mailbox addresses in a mail application includes: the electronic equipment determines a first mailbox address from the plurality of mailbox addresses; the electronic device automatically adds the first mailbox address to a first set of mailbox addresses in a mail application.
In some possible implementations, the determining, by the electronic device, a first mailbox address from the plurality of mailbox addresses includes: the electronic equipment determines a most recently stored mailbox address in the plurality of mailbox addresses as a first mailbox address; or, the electronic device determines a first mailbox address stored in the user among the plurality of mailbox addresses as the first mailbox address.
With reference to the first aspect, in certain implementations of the first aspect, the first set of mailbox addresses are VIP mail contacts in a mail application.
In a second aspect, a method for adding a mail contact is provided, the method comprising: the electronic equipment acquires a first mailbox address in the mail application, wherein the first mailbox address is not in a VIP mail contact of the mail application; the electronic equipment determines the frequency of the mails communicated with the first mailbox address in the fourth time period; and in the case that the frequency is greater than or equal to the fourth frequency threshold, the electronic equipment automatically adds the first mailbox address to the VIP mail contact.
According to the method for adding the mail contact persons, the electronic equipment can automatically add the mail contact persons with high mail communication frequency with the user in the mail application to the VIP mail contact persons of the mail application, the user is prevented from manually adding the mail contact persons, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic equipment is improved, and the user experience is improved.
With reference to the second aspect, in some implementations of the second aspect, before automatically joining the first mailbox address to the VIP mail contact, the method further comprises: and determining that the first mailbox address is the sender address of the non-junk mail.
In the embodiment of the application, before the first mailbox address is automatically added to the VIP mail contact, the first mailbox address can be filtered and screened to determine whether the first mailbox address is a sender address of junk mails, and if the first mailbox address is the sender address of junk mails, the first mailbox address cannot be added to the VIP mail contact, so that the mailbox address which a user does not want to add is prevented from being mistakenly added to the VIP mail contact.
With reference to the second aspect, in some implementations of the second aspect, before automatically joining the first mailbox address to the VIP mail contact, the method further comprises: it is determined that the first mailbox address is not in a VIP mail contact.
In a third aspect, the present technical solution provides an apparatus for adding a mail contact, where the apparatus is included in an electronic device, and the apparatus has a function of implementing the behavior of the electronic device in the above aspect and possible implementation manners of the above aspect. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described functions.
In a fourth aspect, the present technical solution provides an electronic device, including: one or more processors; a memory; a plurality of application programs; and one or more computer programs. Wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. The instructions, when executed by the electronic device, cause the electronic device to perform a method of adding email contacts in any of the possible implementations of any of the above aspects.
In a fifth aspect, the present disclosure provides an electronic device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors for storing computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform a method of adding mail contacts in any of the possible implementations of any of the above aspects.
In a sixth aspect, the present disclosure provides a computer storage medium including computer instructions, which, when executed on an electronic device, cause the electronic device to perform a method for adding a mail contact in any one of the possible implementations of any one of the foregoing aspects.
In a seventh aspect, the present invention provides a computer program product, which when run on an electronic device, causes the electronic device to execute the method for adding a mail contact in any one of the possible designs of the above aspects.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 2 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic diagram of data access between an application a and an application B according to an embodiment of the present application.
Fig. 4 is a set of GUIs provided in embodiments of the present application.
FIG. 5 is another set of GUIs provided by an embodiment of the present application.
FIG. 6 is another set of GUIs provided by embodiments of the present application.
FIG. 7 is another set of GUIs provided by embodiments of the present application.
FIG. 8 is another set of GUIs provided by an embodiment of the present application.
Fig. 9 is a schematic flow chart of a method for adding a mail contact according to an embodiment of the present application.
Fig. 10 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of this application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one, two or more. The term "and/or" is used to describe an association relationship that associates objects, meaning that three relationships may exist; for example, a and/or B, may represent: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Embodiments of an electronic device, a user interface for such an electronic device, and a method for using such an electronic device provided by embodiments of the present application are described below. In some embodiments, the electronic device may be a portable electronic device, such as a cell phone, a tablet, a wearable electronic device with wireless communication capabilities (e.g., a smart watch), and the like, that also includes other functionality, such as personal digital assistant and/or music player functionality. Exemplary embodiments of the portable electronic device include, but are not limited to, a mount
Figure BDA0002042401530000041
Or other operating system. The portable electronic device may also be other portable electronic devices such as a Laptop computer (Laptop) or the like. It should also be understood that in other embodiments, the electronic device may not be a portable electronic device, but may be a desktop computer.
Fig. 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include 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 key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification 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 embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 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.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. 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 reduces the latency of the processor 110, thereby 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.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
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 camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
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. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 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/5G wireless communication applied to the electronic device 100. 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.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks 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 100 implements display functions via the GPU, the display screen 194, and the application processor. 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 adopt 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-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, 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 100. 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 100 and data processing 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 storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. 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 electronic device 100 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 audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being 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 device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the electronic device 100.
Fig. 2 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. 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.
As shown in fig. 2, the application packages may include camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
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. 2, the application framework layer may include a content provider, a content accessor, a window manager, a view system, a phone manager, a resource manager, a notification manager, etc.
Content providers (content providers) are used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and answered, browsing history and bookmarks, phone books, short messages, etc.
Content accessor (content resolver): application A may access the data provided by the content provider of application B through the content resolver of application A.
In order to interact data between applications, Android provides content provider, which is a standard API for data interaction between different applications. When an application needs to expose its data to other applications for use, the application can be implemented by a content provider.
When other applications need to use the data, the data exposed by the content provider can be operated by a content accessor (content resolver) regardless of whether the application providing the data is started. The operation data may include query data (query ()) and the like.
It should be understood that, in the embodiment of the present application, the operation data may include query data, for example, data provided by the content provider of the application B may be accessed by the application a through a query interface in the content resolver of the application a. The operation data may also include others, such as, for example, add data (insert ()), delete data (delete ()), update data (updata ()), and the like.
Illustratively, application A may add data to the content provider of application B through an insert interface in the content resolver of application A.
Illustratively, application A may delete data from the content provider of application B through the delete interface in the content resolver of application A.
For example, application A may update data in the content provider of application B through the updata interface in the content resolver of application A.
The data provided by the content provider may be from a database, a file, or data on a network (for example, data acquired from a cloud side or data acquired from a server).
For example, the data provided by the contact data provider may be from a contact database, which may be a contact provider (contact provider) in the application layer; or, the data provided by the contact data provider can also come from a certain file locally stored by the electronic device; alternatively, the data provided by the contact data provider may also come from the cloud side.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
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, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
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.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
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.
Fig. 3 shows a schematic diagram of data access between application a and application B. As shown in fig. 3, application a (app a) accesses the content provider of application b (app b) through the content resolver of application a.
When data access is performed, the content resolver of the application a needs to use a Uniform Resource Identifier (URI), which is an identifier that the content resolver of the application a performs data interaction with the content provider of the application B.
Illustratively, a URI may be divided into four parts:
topic name (schema): URI prefix of content provider. For example, the URI prefix of the content provider may be specified by Android as content: //;
authorization information (authority): since this content provider is uniquely identified, the content resolver can find the corresponding content provider according to this identification.
Path (path): an item (item) under the URI that is used to determine the path of the request (which data is accessed). Common here would be the names of tables in the database.
Identification (ID) of requested specific data: if the URI contains an identifier representing the requested specific data, the content provider can return the specific data corresponding to the identifier to the content resolver; if the identity of the particular data being requested is not present, it indicates that all of the data needs to be returned.
For example, to operate a record with an ID of 10 in the contact list of the contact database, a path may be constructed that: content:// contact provider/contact/10.
For example, to operate the contact list of the contact database with a record name (name) field with an ID of 10, a content resolver may construct such a path: content:// contact provider/contact/10/name.
For example, content resolver is to operate all favorite contact records in the contact list of the contact database, and may construct a path: content:// contact provider/vip _ contact.
In the embodiment of the application, the favorite contact can be a contact which is manually added into a contact favorite by a user or automatically added into the contact favorite by electronic equipment according to a preset rule.
For example, content resolver is to operate the email addresses of all contacts in the contact list of the contact database, and may construct such a path: content:// contact provider/contact/email address.
For example, content resolver is to operate all call records in the call record list of the contact database, and may construct a path as follows: content:// contact provider/calls.
For example, content resolver is to operate all short message records in the short message list of the short message database, and may construct such a path: content:// message _ log/messages.
It should be understood that the identification of the particular data being requested in the URI is optional.
It should also be understood that the data to be operated by the content resolver may be from other storage means such as files, besides from the database. Illustratively, to operate a name node under a contact node in an extensible markup language (XML) file, such a path may be constructed: content:// contact product/contact/name.
The above describes how the content resolver of the application a accesses the content provider of the application b (app b), and the following describes the data in the database in the content provider of the application b (app b). A database in a contact application, such as a contact provider, is taken as an example for illustration.
Illustratively, table 1 shows a list of contacts and their corresponding information in the contacts application database.
TABLE 1 contact and corresponding information List
ID Contact person Mobile phone number 1 Mobile phone number 2 Address Mailbox address
1 User A 187×××× 151×××× Address 1 517310229@qq.com
2 User B 182×××× NULL Address 2 187××××@163.com
3 User C 186×××× 187×××× NULL NULL
4 User D 156×××× NULL NULL NULL
5 User E 177×××× NULL NULL NULL
6 User F 152×××× NULL NULL NULL
It should be understood that table 1 is merely illustrative and that the information corresponding to each contact may include less or more information. For example, the information corresponding to each contact may also include work address information, nickname information, birthday information, and the like.
Illustratively, when an application needs to query a contact and information corresponding to the contact in a contact application database, a content resolver corresponding to the application may call a query interface to send a corresponding URI to a query interface of a content provider corresponding to the contact application, where the URI may be content:// content provider/contact. After the query interface of the content provider of the contact application receives the URI, it may be determined that the application program needs to query the contact and the information corresponding to the contact in the database of the contact application, and after the information is found from the database, the query interface of the content provider of the contact application may return the queried information to the query interface of the content resolver corresponding to the application program.
Illustratively, when an application program only needs to query a contact and information corresponding to the contact in the contact and information corresponding to the contact, the content resolver corresponding to the application program may call a query interface to send a corresponding URI to a query interface of a content provider corresponding to the contact application, where the URI may be content:// content provider/contact/email address. After the query interface of the content provider of the contact application receives the URI, it can be determined that the application program needs to query the contact and the mailbox address information corresponding to the contact, and after the information is found from the database, the query interface of the content provider of the contact application can return the queried information to the query interface of the content resolver corresponding to the application program.
For example, the information that the query interface of the content provider of the contact application can return the query to the query interface of the content resolver corresponding to the application program may be as shown in table 2.
TABLE 2 information returned by the query interface of the content provider for a contact application
ID Contact person Mailbox address
1 User A 517310229@qq.com
2 User B 187××××@163.com
3 User C NULL
4 User D NULL
5 User E NULL
6 User F NULL
Illustratively, table 3 shows a list of information for call records for contacts in the contacts application database.
TABLE 3 information List of call records for contacts
ID Contact person Total number of calls Number of calls in this month Last time of conversation
1 User A 100 20 2019/04/15 09:45:32
2 User B 85 15 2019/04/14 18:32:21
3 User C 30 0 2019/03/20 15:14:58
4 User D 65 5 2019/04/08 13:17:06
5 User E 77 2 2019/04/06 08:45:36
6 User F 32 1 2019/04/10 12:52:20
It should be understood that table 3 is merely illustrative and that less or more information may be included in the list of information for the call records. For example, the call record corresponding to each contact may further include the earliest call time, the latest week number of calls, and the like.
Illustratively, when an application needs to query a call record in a contact application, a content resolver corresponding to the application may call a query interface to send a corresponding URI to a query interface of a content provider corresponding to the contact application, where the URI may be content:// content provider/calls. After receiving the URI, the query interface of the content provider of the contact application may determine that the application program needs to query the information of the call record in the database of the contact application, and after finding the information from the database, the query interface of the content provider of the contact application may return the queried information to the query interface of the content resolver corresponding to the application program.
Illustratively, when an application needs to query the total call times in the call records, the content resolver corresponding to the application may call the query interface to send a corresponding URI to the query interface of the content provider corresponding to the contact application, where the URI may be content:// content provider/calls/total number of calls. After the query interface of the content provider of the contact application receives the URI, it may determine that the application program needs to query the information of the total number of calls in the call record, and after finding the information from the database, the query interface of the content provider of the contact application may return the queried information to the query interface of the content resolver corresponding to the application program.
For example, the information that the query interface of the content provider of the contact application can return the query to the query interface of the content resolver corresponding to the application program may be as shown in table 4.
TABLE 4 information returned by the query interface of the content provider for a contact application
ID Contact person Total number of calls
1 User A 100
2 User B 85
3 User C 30
4 User D 65
5 User E 77
6 User F 32
Illustratively, table 5 shows a list of information for favorite contacts in the contacts application database.
TABLE 5 information List of favorite contacts
ID Contact person Whether it is a favorite contact
1 User A Is that
2 User B Is that
3 User C Whether or not
4 User D Whether or not
5 User E Whether or not
6 User F Whether or not
It should be understood that the above tables 1, 3 and 5 may be stored in the database of the contact application in a plurality of tables, any two tables may be combined in one table, and the tables 1, 3 and 5 may be stored in the database of the contact application separately.
Illustratively, table 6 shows the short message list information in the short message application database.
Table 6 short message list information
Figure BDA0002042401530000151
It should be understood that table 6 is merely exemplary and that less or more information may be included in the short message list. For example, the short message record corresponding to each contact may further include the earliest receiving/sending time, the latest week number of mutual short message sending, and the like.
Illustratively, when an application needs to query a short message list in a short message application, a content resolver corresponding to the application may call a query interface to send a corresponding URI to the query interface of a content provider corresponding to the short message application, where the URI may be content:// message _ log/messages. After the query interface of the content provider of the short message application receives the URI, it may be determined that the application program needs to query the short message list information in the short message application database, and after finding the information from the database, the query interface of the content provider of the contact application may return the queried information to the query interface of the content resolver corresponding to the application program.
Illustratively, when an application needs to query the total number of times of sending messages to each other in a short message list in a call record, a content resolver corresponding to the application may call a query interface to send a corresponding URI to a query interface of a content provider corresponding to a contact application, where the URI may be content:// message _ log/messages/total number of messages. After the query interface of the content provider of the short message application receives the URI, the information of the total times of sending short messages to each other in the call record, which is needed to be inquired by the application program, can be determined, and after the information is found from the database, the query interface of the content provider of the contact application can return the inquired information to the query interface of the content resolver corresponding to the application program.
For example, the information that the query interface of the content provider of the contact application can return the query to the query interface of the content resolver corresponding to the application program may be as shown in table 7.
TABLE 7 information returned by the query interface of the content provider of the short message application
ID Contact person Total number of times of sending short messages to each other
1 User A 55
2 User B 30
3 User C 10
4 User D 3
5 User E 2
6 User F 5
For convenience of understanding, the following embodiments of the present application will specifically describe, by taking a mobile phone having a structure shown in fig. 1 and fig. 2 as an example, a method for adding a mail contact provided by the embodiments of the present application with reference to the accompanying drawings.
FIG. 4 shows a set of Graphical User Interfaces (GUIs) of a cell phone.
Referring to fig. 4 (a), the GUI is a desktop 401 of a mobile phone. When the mobile phone detects that the user clicks an icon 402 of an email Application (APP) on the desktop 401, the email application may be started to display a GUI as shown in (b) of fig. 4, where the GUI may be referred to as an email application interface. The mail application interface comprises an address book, an inbox, an outbox, a draft box, a VIP (very important person) mail contact person and the like, wherein the address book comprises the information of the name, the mailbox address, the mobile phone number and the like of the addressee recorded by a user. Referring to (b) in fig. 4, when the mobile phone detects an operation of clicking the control 403 by the user, a GUI as shown in (c) in fig. 4 may be displayed.
A VIP mail contact refers to a particularly important mail contact that the system may specially mark to alert the user for mail from the VIP mail contact, such as a star symbol next to its name; alternatively, a folder is added for each VIP mail contact to facilitate the user to view all of the mails of the VIP mail contact.
Referring to the GUI shown in (c) of fig. 4, the GUI is an address book interface of a mail application, and the address book of the mail application includes 10 mail contacts. When the mobile phone detects that the user clicks the control 404 corresponding to the mail contact, the mobile phone may add the corresponding mail contact to the VIP mail contact.
Referring to the GUI shown in (d) in fig. 4, the GUI is a VIP mail contact interface of the mail application, and when the mobile phone detects that the user clicks controls 404 corresponding to Apple, Bob, and Charles in the mail contact, the mobile phone may add Apple, Bob, and Charles to the VIP mail contact. The user can click on the corresponding Apple in the VIP mail contact person, so that the mail information interacted with the Apple can be checked.
Referring to the GUI shown in (e) in fig. 4, which is a setting interface of the mail application, when the mobile phone detects an operation of clicking the setting control 405 by the user, the GUI shown in (e) in fig. 4 may be displayed. The GUI includes account settings, mail text size settings, settings of whether to always send themselves closed, and settings of whether to automatically add VIP contacts, etc. When the cell phone detects an operation of the user to open the control 406 that automatically adds the settings of the VIP contacts, a GUI as shown in (f) of fig. 4 may be displayed.
Referring to the GUI shown in (f) of fig. 4, which is another interface of the mail application, the cell phone may display a window 407, where the window 407 includes a functional introduction to automatically add a VIP contact. As shown in fig. 4 (f), the window 407 includes a text reminder, for example, "after the function is turned on, a contact with high frequency of talking with you can be automatically added to the VIP mail contact".
Referring to the GUI shown in (g) of fig. 4, the GUI is an interface of a phone application, and as can be seen from the phone application interface, the contacts that the user has recently frequently called include Frank and Joe.
Referring to the GUI shown in (h) in fig. 4, the GUI is another interface of the VIP mail contact of the mail application, in which Frank and Joe are automatically added except for Apple, Bob and Charles which exist before, wherein Frank and Joe are both two users with the highest conversation frequency with the user in the contact application.
In one embodiment, a contact with a high frequency of conversation with the user may also be understood as a contact with a frequency of conversation with the user that is greater than or equal to the first frequency threshold during the first time period.
In one embodiment, the cell phone may determine whether contacts having a frequency greater than or equal to a first frequency threshold during the first time period are harassing calls, intermediary calls, etc., and if so, the cell phone may not add the contacts to the VIP email contact list.
According to the method for adding the mail contact persons, the mobile phone can automatically add the contact persons with high conversation frequency into the VIP mail contact persons of the mail application, the situation that the user manually adds the contact persons is avoided, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic equipment is improved, and the user experience is improved.
In one embodiment, the mobile phone can automatically add the contact with the mailbox address and high call frequency with the user to the VIP mail contact of the user, namely when the mobile phone automatically adds the VIP mail contact, whether the contact has the mailbox address and is a contact with high call frequency with the user needs to be judged.
In one embodiment, the cell phone may automatically add mailbox addresses of contacts of the user's favorite contacts in the contacts application to VIP mail contacts of the mail application.
In an embodiment, the mobile phone may also automatically add the mailbox addresses of the contacts having a frequency of talking with the user greater than or equal to the first frequency threshold value in the first time period to other types of mail contacts of the mail application, for example, automatically add the mailbox addresses to an address book of the mail application, where the address book may be as shown in (c) in fig. 4, and all the mail contacts of the user may be stored in the address book.
It should be understood that the "contact" and the "email contact" referred in the embodiments of the present application are two different concepts, where the contact is a contact in a non-email application, and may refer to a contact stored in a phone or a contact application, and a user may search for a corresponding contact in the phone or the contact application, so as to perform operations such as talking with the contact, sending a short message, and the like; alternatively, a contact may also refer to a contact in a social application (e.g., Facebook, Twitter, WeChat, or QQ) in which a user may search for the corresponding contact, thereby sending a message to the contact, initiating a video call or a voice call, and so on. And the mail contact person refers to a contact person in the mail application, and the user can search the corresponding mail contact person in the mail application, so that the operations of searching the mail communicated with the contact person, sending the mail to the contact person and the like are performed.
Fig. 5 shows another set of GUIs for a handset.
When the cell phone detects that the user has turned on the operation of automatically adding VIP mail contacts, a GUI as shown in (a) of fig. 5 may be displayed.
Referring to the GUI shown in fig. 5 (a), the cell phone may display a window 501, which window 501 includes a functional introduction to automatically add a VIP contact. As in fig. 5 (a), the window 501 includes a text reminder "after the function is turned on, you's favorite contacts can be automatically added to the VIP mail contacts".
Referring to the GUI shown in fig. 5 (b), the GUI is a contact interface collected in a contact application (address book application) of the mobile phone. As shown in FIG. 5 (b), Frank and Joe are the contacts that the user has collected.
The collected contacts refer to call contacts which are collected by the user, and the user can collect one or more of the contacts in the collected contacts for quick viewing.
Frank and Joe are automatically added to VIP mail contacts of the mail application except for the previous mails Apple, Bob and Charles, wherein the Frank and the Joe are both contacts which have mailbox addresses and are collected for the user in the contact application.
According to the method for adding the mail contact persons, the mobile phone can automatically add the contact persons collected by the user into the VIP mail contact persons of the mail application, the user is prevented from manually adding the contact persons, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic equipment is improved, and the user experience is improved.
In one embodiment, the mobile phone may add the contact which has the mailbox address and is collected by the user in the contact application to the VIP mail contact of the mail application, that is, when the VIP mail contact is automatically added to the mobile phone, it is necessary to determine whether the contact has the mailbox address and is collected by the user.
In one embodiment, the mobile phone may automatically add the mailbox address of a contact in the short message application, which has a frequency of communicating short messages with the user within a preset time period and is greater than or equal to a preset frequency threshold, to the VIP mail contact in the mail application.
In one embodiment, the mobile phone may also automatically add the mailbox addresses of the contacts communicating the short messages with the user within the preset time period, where the frequency of the short messages is greater than or equal to the preset frequency threshold, to other types of mail contacts of the mail application, and exemplarily, automatically add the mailbox addresses to the address list of the mail application.
Fig. 6 shows another set of GUIs for a handset.
When the cell phone detects that the user has turned on the operation of automatically adding VIP mail contacts, a GUI as shown in (a) of fig. 6 may be displayed.
Referring to the GUI shown in (a) of fig. 6, the GUI is another interface of the mail application. The cell phone may display a window 601 including a functional introduction to automatically add a VIP contact in the window 601. As shown in fig. 6 (a), the window 601 includes a text reminder "after the function is turned on, a contact who frequently communicates short messages with you can be automatically added to the VIP mail contact".
In the embodiment of the present application, the contact person communicating the short message with the user may refer to a contact person to which the user receives the short message sent by the user, and/or a contact person to which the user sends the short message.
Referring to the GUI shown in (b) of fig. 6, the GUI is an interface of a short message application.
Frank and Joe are automatically added to VIP mail contacts of the mail application except for Apple, Bob and Charles which are in the past, wherein the Frank and the Joe are both contacts which have mailbox addresses in the contact application and have high short message frequency in the short message application and are communicated with users.
It should be understood that in the embodiment of the present application, data between the phone or contact application and the short message application are intercommunicated, that is, when the phone of the mobile phone or a contact stored in the contact application sends a short message to a user, a name and a mobile phone number of a sender of the short message may be displayed in the short message application of the mobile phone.
In one embodiment, the mobile phone can automatically add a contact which has a mailbox address and has high short message frequency of intercommunication with the user in the short message application to the VIP mail contact of the mail application.
In one embodiment, the mobile phone can automatically add a contact which has a mailbox address and is high in short message communication frequency with the user to the VIP mail contact of the user, namely when the mobile phone automatically adds the VIP mail contact, whether the contact has the mailbox address and is a contact high in short message communication frequency with the user needs to be judged.
According to the method for adding the mail contact persons, the mobile phone can automatically add the contact persons with high short message communication frequency with the user to the VIP mail contact persons of the mail application, so that the user is prevented from manually adding the contact persons, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic equipment is improved, and the user experience is improved.
In one embodiment, the mobile phone may automatically add the mailbox address of the contact with which the frequency of communicating with the user within the preset time period is greater than or equal to the preset frequency threshold to the VIP mail contact of the mail application.
In one embodiment, the mobile phone may also automatically add the contact whose frequency of communicating with the user is greater than or equal to the preset frequency threshold to other types of mail contacts of the mail application, for example, automatically add these mailbox addresses to the address list of the mail application.
Fig. 7 shows another set of GUIs for a handset.
When the cell phone detects that the user starts the operation of automatically adding a VIP mail contact, a GUI as shown in (a) of fig. 7 is displayed.
Referring to the GUI shown in (a) of fig. 7, which is another interface of the mail application, the cell phone may display a window 701, which includes a functional introduction to automatically add a VIP contact in the window 701. As shown in fig. 7 (a), the window 701 includes a text reminder "after the function is turned on, a contact who can communicate with you often is automatically added to the VIP mail contact".
Referring to the GUI shown in (b) of fig. 7, the GUI is an interface of an inbox of a mail application. As can be seen from the GUI, the mails Dendi and Emily are mail contacts with high frequency of communicating mails with the user.
Referring to the GUI shown in FIG. 7 (c), the GU is another interface for VIP mail contacts in a mail application. The method comprises the steps that in addition to Apple, Bob and Charles which are in the past, Dendi and Emily are automatically added to VIP mail contacts of a mail application, wherein the Dendi and the Emily are contacts which are in the mail application and have high mail communication frequency with a user.
In one embodiment, the email contact with high frequency of communicating emails with the user may be a mailbox address of a contact with frequency of communicating emails with the user greater than or equal to a preset frequency within a preset time period.
In an embodiment, before or after determining the mailbox address of the contact with the frequency of the email intercommunicating with the user being greater than or equal to the preset frequency, the mobile phone may filter and screen the emails within the preset time period or the emails of the email contact with the determined high intercommunicating email frequency, and determine which emails are spam and which emails are non-spam. The conditions for the mobile phone to determine whether the email is spam include, but are not limited to:
(1) determining whether the mail is spam through keywords in the mail
For example, the mobile phone may collect some characteristic words in the spam email (such as discount, free, promotion, etc.) according to the keyword recognition to form a large database, and when a piece of email is sent out, the characteristics of the email header, the email title, the email content and the keywords in the database are automatically matched, and if there are similar words, the piece of email is determined to be spam.
(2) Judging whether the mail is junk mail or not according to rules set by a user
For example, the user has set 00: 00 to 07: the mail received in 00 is spam.
For another example, the user sets a mail having a mail size larger than 10Mb as spam.
(3) Determining whether the mail is spam through URL link contained in the mail
For example, if a piece of mail includes a URL link, the mobile phone may determine from the website pointed by the URL link, and if the website is an advertiser website or a website that other users do not wish to open, may determine that the piece of mail is a coming mail and a mail.
And the mobile phone filters and screens the mails received within the preset time so as to determine which mails are junk mails. The handset may only determine the address of the sender identified as non-spam to determine if it is a VIP mail contact. It should be understood that if Dendi and Emily are saved between the mail applications, i.e., the name and mailbox address of Dendi and the name and mailbox address of Emily are saved, the names of Dendi and Emily may be displayed in the VIP mail contact. If only the mailbox addresses of the Dendi and Emily are stored in the mail application, the corresponding mailbox addresses of the Dendi and Emily can be displayed in the VIP mail contact.
According to the method for adding the mail contact persons, the mobile phone can automatically add the mail contact persons with high mail communication frequency with the user in the mail application to the VIP mail contact persons of the mail application, so that the user is prevented from manually adding the mail contact persons, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of electronic equipment is improved, and the user experience is improved.
In one embodiment, the cell phone may prompt the user to select the type of contact that needs to be automatically added to the VIP mail contact.
Fig. 8 shows another set of GUIs for a handset.
Referring to the GUI shown in (a) of fig. 8, the GUI is another setting interface of the mail application, and includes an account setting, a mail text size setting, a setting of whether to always give itself a secret, and a setting of whether to automatically add a VIP contact. When the cell phone detects an operation of the user clicking a control for automatically adding a VIP mail contact, a GUI as shown in (b) of fig. 8 may be displayed.
Referring to the GUI shown in fig. 8 (b), which is another interface of the mail application, the cell phone may display a window 801 that includes a selection to automatically add a VIP mail contact in the window 801. As shown in (b) in fig. 8, in the window 801, the mobile phone may prompt the user to select a type of a contact that needs to be automatically added, where the type of the contact that needs to be automatically added includes "a contact with a high frequency of talking with you", "a contact that is favorite in a contact application", "a contact with a high frequency of communicating with you with a short message", and "a contact with a high frequency of communicating with you with an email". When the mobile phone detects that the user selects the control 802 corresponding to the contact with high call frequency and detects that the user clicks the control 803, the contact with high call frequency with the user can be automatically added to the VIP mail contact. For example, the cell phone may automatically add users to the VIP mail contact who have communicated with the user more frequently than a first frequency threshold for a first time period.
For example, the cell phone may automatically add users who have been talking to the user more than or equal to 20 times a week to the VIP mail contact.
Frank and Joe are automatically added to VIP mail contacts of the mail application except for Apple, Bob and Charles which are in the contact application, wherein the Frank and the Joe are users with high conversation frequency with the users in the contact application.
In one embodiment, in the window 801, the mobile phone may prompt the user to select a type of a contact to be automatically added, where the type of the contact to be automatically added includes "a contact with a mailbox address and having a high frequency of talking with you", "a contact with a mailbox address and you in a contact application", "a contact with a mailbox address and having a high frequency of communicating with you", and "a contact having a high frequency of communicating with you with a mail".
For example, the cell phone may automatically add a user having a mailbox address that is greater than or equal to 20 conversations with the user to a VIP email contact within one week.
According to the method for adding the mail contact persons, the mobile phone enables the user to select the type of the contact persons to be automatically added, manual adding of the user is avoided, the method is helpful for reducing operation complexity of the user, improving operation efficiency of the user, improving intelligent degree of electronic equipment and improving user experience.
In the above, with reference to fig. 4 to fig. 8, several sets of GUIs provided in the embodiment of the present application are described, and a method for adding a mail contact provided in the embodiment of the present application is described below.
Fig. 9 shows a schematic flow chart of a method 900 for adding a contact according to an embodiment of the present application. As shown in fig. 9, the method 900 includes:
s910, the electronic device acquires one or more contacts in the first application and contact information associated with the one or more contacts.
For example, after a mobile phone detects that a user clicks a control for automatically adding a VIP mail contact, a content resolver of a mail application may call a query interface to send first query request information to a query interface corresponding to a content provider of a phone or a contact application, where the first query request information is used to request for querying information of a call record with one or more contacts in the phone or the contact application in a first time period; or the first query request information is used for requesting to query whether one or more contacts in the contact application are the contact information collected by the user.
After receiving the URI, the telephone or the content provider of the contact application analyzes the URI, then inquires the information of the call record in the contact application database, carries the inquired information in the first inquiry request response information, and sends the inquired information to the query interface of the content resolver of the mail application through the query interface. And the content resolver of the mail application returns the received data to the mail application of the application program layer. The mail application can determine the contact person with the conversation frequency greater than or equal to the first frequency threshold value in the first time period from the one or more contact persons according to the returned data; alternatively, the contacts of the user's favorite in the contacts application are determined from the one or more contacts.
Illustratively, the first query request message includes a URI, and the URI is used for indicating to query the call record message or indicating to query the contact information collected by the user.
For example, if the URI is used to indicate to query the call record information, the content provider of the contact application may send all the call records of the queried user to the content resolver of the mail application; alternatively, the content provider of the contacts application may send the user's call record to the content resolver of the mail application for a period of time (e.g., a month or a week).
After receiving the call record information, the mail application may determine a contact from the one or more contacts that has a call frequency greater than or equal to a first frequency threshold for a first time period. For example, the mail application may determine contacts for which the user has had a call log number of 20 or more times a week; for example, the mail application may determine contacts for which the user has a number of calls greater than or equal to 200 times a month.
For example, if the URI indicates to query the contact information of the user collection, the content provider of the contact application may send the queried contact information of the user collection to the content resolver of the mail application.
The contact application, upon receiving the call record information, may determine contact information of the user collection from the one or more contacts.
For example, after the mobile phone detects that the user clicks the control for automatically adding the VIP mail contact, the content resolver of the mail application may call the query interface to send second query request information to the query interface corresponding to the content provider of the short message application, where the second query request information is used to request a query to communicate information of the short message with one or more contacts in the short message application in a second time period.
After receiving the URI, the content provider of the short message application analyzes the URI, then inquires the information of the intercommunicated short message in the short message application database, carries the inquired information in the second inquiry request response information, and sends the inquired information to the query interface of the content resolver of the mail application through the query interface. And the content resolver of the mail application returns the received data to the mail application of the application program layer. The mail application may determine, according to the returned data, a contact from the one or more contacts that has communicated the short message with the user within the second time period with a frequency greater than or equal to a second frequency threshold.
It should be understood that in the embodiment of the present application, the telephone or contact application may communicate data with the short message application, and the mail application queries data stored in the short message application, which may also be understood as the mail application querying data stored in the telephone or contact application.
For example, the mail application may perform query through the mail application database, and determine a mail contact whose number of times of sending mails to and from the user in the third time period is greater than or equal to a preset value. It should be understood that the number of times the user sends and receives the email sent by the email contact may be the number of times the user receives the email sent by the email contact and/or the number of times the user sends the email to the email contact.
S920, the electronic device determines the at least one contact from the one or more contact applications according to the contact information, and determines that the mailbox address of each contact in the at least one contact is stored in the first application.
Illustratively, the first application is a phone or a contact application, the contact information is call data of the one or more contacts stored in the phone or the contact application, and each contact in the at least one contact is a contact with which a frequency of calls made by a user is greater than or equal to a first frequency threshold in a first time period; or, in the first time period, the user communicates with the contact whose number of times is greater than or equal to the preset number of times (including the number of times of calling the first contact, and/or the number of times of receiving the call from the first contact).
Illustratively, the first application is a telephone or a contact application, the contact information is short message data of the one or more contacts stored in the telephone or the contact application, and each contact in the at least one contact is a contact with which the frequency of the short message interworking by the user is greater than or equal to a second frequency threshold in a second time period; or, in the second time period, the number of times of the short message intercommunication between the user and the contact is greater than the preset number of times of the short message intercommunication (including the number of times of sending the short message to the first contact and/or the number of times of receiving the short message sent by the first contact).
Illustratively, the first application is a contacts application, the contact information is whether the one or more contacts stored in the contacts application are favorite contacts, and each of the at least one contact is a favorite contact of the user.
For example, after determining the at least one contact, the mail application may continue to send a third query request message to the content provider of the contact application through the content resolver of the mail application, where the third query request message is used to query whether the at least one contact has a mailbox address. After receiving the third query request information through the query interface, the content provider of the contact application may query the mailbox address of the at least one contact application database, and carry the queried result in the third query request response information and send the third query request response information to the content resolver of the mail application.
After the mail application receives the information of the mailbox address of the at least one contact, if each contact in the at least one contact has a corresponding mailbox address, the electronic device may add the mailbox address of each contact in the at least one contact to the first set of mail contacts.
In an embodiment, the URI of the call record of the query phone or the contact in the contact application and the URI of the mailbox address of the query contact may be carried in the first query request message sent by the content resolver of the mail application to the content provider of the contact application. After receiving the first query request message, the content provider of the contact application may carry the queried result in the first query request response message and send the first query request response message to the content resolver of the mail application.
After receiving the query result, the mail application may determine information of at least one contact with a call frequency greater than or equal to a first frequency threshold in a first time period, and then determine a contact with a mailbox address in the at least one contact.
Alternatively, the mail application may also determine the contacts with the mailbox addresses in all the contacts, and then determine the contact with the call frequency greater than or equal to the first frequency threshold in the first time period from the contacts with the mailbox addresses.
S930, the electronic device adds the mailbox address of each contact in the at least one contact to a first mail contact set in the mail application.
It should be understood that, in the embodiment of the present application, the electronic device adds the mailbox address of the at least one contact to the first set of mail contacts in the mail application, and it may also be understood that the electronic device adds the mailbox address of the at least one contact to the first set of mailbox addresses in the mail application.
It should also be understood that, in this embodiment of the present application, the first set of mailbox addresses may be a set of mailbox addresses of VIP mail contacts in the mail application, and may also be a set of mailbox addresses of all contacts in the mail application, which is not limited in this embodiment of the present application.
In one embodiment, some of the at least one contact includes a plurality of mailbox addresses, the electronic device may prompt the user to select a mailbox address from the plurality of mailbox addresses to join the first set of mailbox addresses; or, the electronic device may save the first mailbox address by default to be added to the first mailbox address set; alternatively, the electronic device may add the mailbox address newly saved by the user to the first mailbox address set.
In one embodiment, the electronic device may first determine whether the mailbox address for each of the at least one contact is already included in the first set of mailbox addresses. When none of the mailbox addresses of the at least one contact are in the first set of mailbox addresses, the electronic device may automatically add the mailbox addresses of the at least one contact to the first set of mailbox addresses; when the mailbox addresses of at least part of the at least one contact are already in the first set of mailbox addresses, the electronic device may determine not to add the mailbox addresses of the at least part of the contact to the first set of mailbox addresses, thereby avoiding repeatedly adding the same mailbox addresses.
Illustratively, the first set of mail contacts are VIP mail contacts of a mail application.
According to the method for adding the mail contact persons, the mobile phone can automatically add the mailbox addresses of some more important contact persons into the VIP mail contact persons of the mail application, wherein the adding mode includes but is not limited to automatically adding the mailbox addresses of the contact persons with high conversation frequency with the user into the VIP mail contact persons, automatically adding the mailbox addresses of the contact persons collected by the user into the VIP mail contact persons, automatically adding the mailbox addresses of the contact persons with high communication frequency with the user and high communication frequency with the short messages into the VIP mail contact persons, and automatically adding the mailbox addresses of the contact persons with high communication frequency with the user and high communication frequency with the user into the VIP mail contact persons, so that the manual adding of the user is avoided, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of electronic equipment is improved, and the user experience is improved.
It should be understood that the manner of automatically adding the contact in the embodiment of the present application is not limited to the above several manners, and other manners are also possible. For example, the email application may communicate data with a social application, where a database of the social application stores friends of the user and mailbox address information corresponding to each friend, and the electronic device may determine whether to add the mailbox address of each friend to a VIP email contact list of the email application according to the frequency of interaction with each friend. If the social application adopts a white list mechanism, the electronic device does not need to perform filtering and screening operations when the VIP mail contact is automatically added, because friends of the user in the social application are all friends authenticated by the user. The frequency of interactions with each buddy may include the frequency of messages with each buddy (e.g., the number of times a week messages with the buddy), the frequency of calls with each buddy (e.g., the number of voice or video calls with the buddy within a week), and so on.
Illustratively, the social application is Facebook, Twitter, QQ, WeChat, MSN, and the like.
It will be appreciated that the electronic device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In this embodiment, the electronic device may be divided into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module by corresponding functions, fig. 10 shows a possible composition diagram of the electronic device 1000 involved in the above embodiment, as shown in fig. 10, the electronic device 1000 may include: an acquisition unit 1001, a determination unit 1002, and an addition unit 1003.
Among other things, the obtaining unit 1001 may be used to support the electronic device 1000 to perform the above step S910, and/or to perform other processes of the techniques described herein.
Determination unit 1002 may be used to enable electronic device 1000 to perform step S920 described above, and/or other processes for performing the techniques described herein.
The adding unit 1002 may be used to support the electronic device 1000 to perform the above step S930, and/or to perform other processes of the techniques described herein.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The electronic device provided by the embodiment is used for executing the method for adding the mail contact person, so that the same effect as the effect of the implementation method can be achieved.
In case an integrated unit is employed, the electronic device may comprise a processing module, a storage module and a communication module. The processing module may be configured to control and manage an action of the electronic device, and for example, may be configured to support the electronic device to execute steps performed by the above units. The memory module may be used to support the electronic device in executing stored program codes and data, etc. The communication module can be used for supporting the communication between the electronic equipment and other equipment.
The processing module may be a processor or a controller. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a Digital Signal Processing (DSP) and a microprocessor, or the like. The storage module may be a memory. The communication module may specifically be a radio frequency circuit, a bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
In an embodiment, when the processing module is a processor and the storage module is a memory, the electronic device according to this embodiment may be a device having the structure shown in fig. 1.
The present embodiment also provides a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are run on an electronic device, the electronic device is caused to execute the above related method steps to implement the method for adding a mail contact in the above embodiment.
The embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps to implement the method for adding the mail contact in the above embodiment.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the method for adding the mail contact in the above-mentioned method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. A method for adding mail contacts, which is applied to an electronic device, is characterized in that the method comprises the following steps:
acquiring a first contact person in first application and first contact person information related to the first contact person, wherein the first application is an application except a mail application in the electronic equipment, and the first application is a telephone or contact person application;
in a first time period, when the call frequency with the first contact is greater than or equal to a first frequency threshold value and one or more mailbox addresses of the first contact are stored in the first application, determining a mailbox address which is recently stored in one or more mailbox addresses as a first mailbox address; or, in a second time period, when the frequency of short messages communicated with the first contact is greater than or equal to a second frequency threshold value and one or more mailbox addresses of the first contact are stored in the first application, determining a most recently stored mailbox address in the one or more mailbox addresses as the first mailbox address; or when the first contact is a collected contact and one or more mailbox addresses of the first contact are stored in the first application, determining a mailbox address which is recently stored in one or more mailbox addresses as the first mailbox address;
and automatically adding the first mailbox address into a first mailbox address set in the mail application.
2. The method of claim 1, wherein prior to automatically adding the one or more mailbox addresses to the first set of mailbox addresses in the mail application, the method further comprises:
determining that the one or more mailbox addresses are not in the first set of mailbox addresses.
3. The method of claim 1 or claim 2, wherein the first set of mailbox addresses are VIP mail contacts of visitors in a mail application.
4. An electronic device, comprising: one or more processors; one or more memories; a plurality of application programs; and one or more programs, wherein the one or more programs are stored in the one or more memories, which when executed by the one or more processors, cause the electronic device to perform the steps of:
acquiring a first contact person in first application and first contact person information related to the first contact person, wherein the first application is an application except a mail application in the electronic equipment, and the first application is a telephone or contact person application;
in a first time period, when the call frequency with the first contact is greater than or equal to a first frequency threshold value and one or more mailbox addresses of the first contact are stored in the first application, determining a mailbox address which is recently stored in one or more mailbox addresses as a first mailbox address; or, in a second time period, when the frequency of short messages communicated with the first contact is greater than or equal to a second frequency threshold value and one or more mailbox addresses of the first contact are stored in the first application, determining a most recently stored mailbox address in the one or more mailbox addresses as the first mailbox address; or when the first contact is a collected contact and one or more mailbox addresses of the first contact are stored in the first application, determining a mailbox address which is recently stored in one or more mailbox addresses as the first mailbox address;
and automatically adding the first mailbox address into a first mailbox address set in the mail application.
5. The electronic device of claim 4, wherein the one or more programs, when executed by the processor, cause the electronic device to perform the steps of:
determining that the one or more mailbox addresses are not in a first set of mailbox addresses in a mail application before automatically adding the one or more mailbox addresses corresponding to the first contact to the first set of mailbox addresses.
6. The electronic device of claim 4 or 5, wherein the first set of mailbox addresses are VIP mail contacts in a mail application.
7. A computer storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of adding email contacts of any of claims 1-3.
CN201910346380.7A 2019-04-26 2019-04-26 Method for adding mail contact and electronic equipment Active CN110191223B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910346380.7A CN110191223B (en) 2019-04-26 2019-04-26 Method for adding mail contact and electronic equipment
PCT/CN2020/085346 WO2020216144A1 (en) 2019-04-26 2020-04-17 Method for adding mail contact, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910346380.7A CN110191223B (en) 2019-04-26 2019-04-26 Method for adding mail contact and electronic equipment

Publications (2)

Publication Number Publication Date
CN110191223A CN110191223A (en) 2019-08-30
CN110191223B true CN110191223B (en) 2021-07-16

Family

ID=67715130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910346380.7A Active CN110191223B (en) 2019-04-26 2019-04-26 Method for adding mail contact and electronic equipment

Country Status (2)

Country Link
CN (1) CN110191223B (en)
WO (1) WO2020216144A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191223B (en) * 2019-04-26 2021-07-16 华为技术有限公司 Method for adding mail contact and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279858A (en) * 2013-04-23 2013-09-04 东莞宇龙通信科技有限公司 Method and terminal for adding addressee
CN103365892A (en) * 2012-03-31 2013-10-23 百度在线网络技术(北京)有限公司 Method and device for processing multiple contact objects
CN104853022A (en) * 2015-04-23 2015-08-19 深圳市金立通信设备有限公司 Processing method for information of contact person
CN105100445A (en) * 2015-06-29 2015-11-25 小米科技有限责任公司 Message reminding method and device, and terminal
CN105763425A (en) * 2016-03-28 2016-07-13 珠海格力电器股份有限公司 Mailbox processing method and device
CN106713576A (en) * 2015-07-23 2017-05-24 腾讯科技(深圳)有限公司 Method for distinguishing multiple numbers in contact person information and device thereof
CN107135141A (en) * 2017-03-13 2017-09-05 网易(杭州)网络有限公司 For the method and apparatus for the sender for setting Email automatically
CN108055404A (en) * 2017-12-25 2018-05-18 广东欧珀移动通信有限公司 Reminder announced method, apparatus, terminal and storage medium
CN108156303A (en) * 2017-12-25 2018-06-12 广东欧珀移动通信有限公司 Reminder announced method, apparatus, terminal and storage medium
CN108512992A (en) * 2018-02-28 2018-09-07 维沃移动通信有限公司 A kind of information processing method and device
CN109005275A (en) * 2018-08-31 2018-12-14 阿里巴巴集团控股有限公司 A kind of managing contact information system and method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155018B (en) * 2006-09-28 2010-11-03 华为技术有限公司 Data synchronization method and its implementing device and system
CN101882264A (en) * 2009-11-27 2010-11-10 镇立新 Method for adding contacts
CN101916399A (en) * 2010-07-27 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for adding recipients
CN103329127B (en) * 2011-01-25 2017-11-17 宇龙计算机通信科技(深圳)有限公司 The adding method and device of addressee information
CN102611644A (en) * 2012-03-27 2012-07-25 上海量明科技发展有限公司 Method and client terminal for collecting instant communication messages
CN102932533B (en) * 2012-10-15 2014-08-06 广东欧珀移动通信有限公司 Method and device for third party application program to call contacts
CN103220389A (en) * 2013-03-25 2013-07-24 东莞宇龙通信科技有限公司 Intelligent interaction method and intelligent interaction system of communication application and contact list
CN103986842B (en) * 2014-05-30 2019-02-15 努比亚技术有限公司 A kind of collecting method and device of contact data
US10079817B2 (en) * 2016-02-29 2018-09-18 Dropbox, Inc. Techniques for invite enforcement and domain capture
CN110191223B (en) * 2019-04-26 2021-07-16 华为技术有限公司 Method for adding mail contact and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365892A (en) * 2012-03-31 2013-10-23 百度在线网络技术(北京)有限公司 Method and device for processing multiple contact objects
CN103279858A (en) * 2013-04-23 2013-09-04 东莞宇龙通信科技有限公司 Method and terminal for adding addressee
CN104853022A (en) * 2015-04-23 2015-08-19 深圳市金立通信设备有限公司 Processing method for information of contact person
CN105100445A (en) * 2015-06-29 2015-11-25 小米科技有限责任公司 Message reminding method and device, and terminal
CN106713576A (en) * 2015-07-23 2017-05-24 腾讯科技(深圳)有限公司 Method for distinguishing multiple numbers in contact person information and device thereof
CN105763425A (en) * 2016-03-28 2016-07-13 珠海格力电器股份有限公司 Mailbox processing method and device
CN107135141A (en) * 2017-03-13 2017-09-05 网易(杭州)网络有限公司 For the method and apparatus for the sender for setting Email automatically
CN108055404A (en) * 2017-12-25 2018-05-18 广东欧珀移动通信有限公司 Reminder announced method, apparatus, terminal and storage medium
CN108156303A (en) * 2017-12-25 2018-06-12 广东欧珀移动通信有限公司 Reminder announced method, apparatus, terminal and storage medium
CN108512992A (en) * 2018-02-28 2018-09-07 维沃移动通信有限公司 A kind of information processing method and device
CN109005275A (en) * 2018-08-31 2018-12-14 阿里巴巴集团控股有限公司 A kind of managing contact information system and method

Also Published As

Publication number Publication date
CN110191223A (en) 2019-08-30
WO2020216144A1 (en) 2020-10-29

Similar Documents

Publication Publication Date Title
CN114467297B (en) Video call display method and related device applied to electronic equipment
CN110114747B (en) Notification processing method and electronic equipment
CN110138959B (en) Method for displaying prompt of human-computer interaction instruction and electronic equipment
CN111182145A (en) Display method and related product
US20230070358A1 (en) File Sharing Method, System, and Related Device
CN109981885B (en) Method for presenting video by electronic equipment in incoming call and electronic equipment
CN114173000B (en) Method, electronic equipment and system for replying message and storage medium
CN114173204A (en) Message prompting method, electronic equipment and system
WO2020259554A1 (en) Learning-based keyword search method, and electronic device
CN111143586A (en) Picture processing method and related device
CN112543447A (en) Device discovery method based on address list, audio and video communication method and electronic device
CN113170019A (en) Caller identification method based on application and terminal equipment
CN111835904A (en) Method for starting application based on context awareness and user portrait and electronic equipment
CN115705315A (en) Method of managing files, electronic device, and computer-readable storage medium
CN114157756A (en) Task processing method and related electronic equipment
CN112740148A (en) Method for inputting information into input box and electronic equipment
CN113709304B (en) Intelligent reminding method and equipment
CN114064160A (en) Application icon layout method and related device
CN110191223B (en) Method for adding mail contact and electronic equipment
CN115019410B (en) Sending method and electronic equipment
CN114664306A (en) Method, electronic equipment and system for editing text
CN114430441A (en) Incoming call prompting method, system, electronic equipment and storage medium
CN112286596A (en) Message display method and electronic equipment
CN114205318B (en) Head portrait display method and electronic equipment
CN115883710A (en) Identification method and device for incoming call number

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