WO2020216144A1 - Method for adding mail contact, and electronic device - Google Patents
Method for adding mail contact, and electronic device Download PDFInfo
- Publication number
- WO2020216144A1 WO2020216144A1 PCT/CN2020/085346 CN2020085346W WO2020216144A1 WO 2020216144 A1 WO2020216144 A1 WO 2020216144A1 CN 2020085346 W CN2020085346 W CN 2020085346W WO 2020216144 A1 WO2020216144 A1 WO 2020216144A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- contact
- application
- electronic device
- user
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
- H04M1/2745—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
- H04M1/27453—Directories allowing storage of additional subscriber data, e.g. metadata
- H04M1/27457—Management thereof, e.g. manual editing of data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72469—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/30—Types of network names
- H04L2101/37—E-mail addresses
Definitions
- This application relates to the field of electronic devices, and more specifically, to a method and electronic device for adding mail contacts.
- VIP VIP
- the present application provides a method and electronic device for adding email contacts, which helps to improve the user's operation efficiency and the degree of intelligence of the electronic device, and helps to improve the user experience.
- a method for adding a mail contact is provided.
- the method is applied to an electronic device.
- the method includes: the electronic device obtains a first contact in a first application and a first contact associated with the first contact.
- Contact information the first application is an application other than the mail application in the electronic device; where the first contact information satisfies a preset condition, and the first application stores one or more of the first contact
- the electronic device automatically adds the one or more email addresses to the first email address set in the mail application.
- the electronic device can obtain the first contact and the first contact information associated with the first contact from applications other than the mail application, by determining that the first contact information satisfies a preset condition and the first contact information A contact corresponds to one or more email addresses, and the electronic device can automatically add the one or more email addresses to the first email address set in the mail application, avoiding manual addition by users and helping to reduce user complexity Provide users with operating efficiency, improve the intelligence of electronic equipment, and enhance user experience.
- the first application is a phone or contact application
- the first contact information is a call of the first contact saved in the phone or contact application
- the preset condition is that the frequency of the call with the first contact is greater than or equal to the first frequency threshold in the first time period.
- the electronic device can automatically add contacts with high frequency of calls to the first email address set of the email application, avoiding manual addition by the user and helping to reduce the complexity of the user's operation Provide users with operating efficiency, improve the intelligence of electronic equipment, and enhance user experience.
- the first application is a phone or contact application
- the first contact information is a short message of the first contact stored in the phone or contact application.
- the preset condition is that the frequency of short message exchange with the first contact is greater than or equal to the second frequency threshold in the second time period.
- the electronic device can automatically add contacts with a high frequency of communicating with users to the first email address set of the email application, which avoids manual addition by the user and helps reduce users The complexity of the operation, improve the user’s operating efficiency, improve the intelligence of electronic equipment, and enhance the user experience.
- the first application is a contact application
- the first contact information is whether the first contact saved in the contact application is a favorite contact
- the preset condition is that the first contact is a favorite contact.
- the electronic device can automatically add the user's favorite contacts to the first email address set of the mail application, which avoids the user from adding manually and helps to reduce the user's operation complexity , Improve the user's operating efficiency, improve the intelligence of electronic equipment, and enhance the user experience.
- the first application is a social application
- the first contact information is the frequency of interaction with the first contact in the social application
- the preset condition is that the frequency is greater than or equal to a preset Frequency threshold.
- the social application is an application such as Facebook, Twitter, QQ, or MSN.
- the interaction with the first contact includes exchanging messages with the first contact, or the frequency of a call (for example, a video call or a voice call).
- a call for example, a video call or a voice call.
- the method before the electronic device automatically adds one or more email addresses corresponding to the first contact to the first email address set in the mail application, the method It also includes: the electronic device determines that the one or more email addresses are not in the first email address set.
- the first contact corresponds to multiple email addresses, and one or more email addresses corresponding to the first contact are automatically added to the first email application.
- An email address set includes: the electronic device determines the first email address from the multiple email addresses; the electronic device automatically adds the first email address to the first email address set in the mail application.
- the electronic device determining the first email address from the multiple email addresses includes: the electronic device determines the email address most recently saved by the user among the multiple email addresses as the first email address; or, The electronic device determines the first email address saved by the user among the multiple email addresses as the first email address.
- the first set of email addresses are VIP email contacts in the email application.
- a method for adding a mail contact includes: an electronic device obtains a first email address in a mail application, and the first email address is not in the VIP mail contact of the mail application; In the fourth time period, the frequency of email exchanges with the first email address; when the frequency is greater than or equal to the fourth frequency threshold, the electronic device automatically adds the first email address to the VIP email contact.
- the electronic device can automatically add the mail contacts in the mail application that communicate with the user frequently to the VIP mail contacts of the mail application, which avoids the user from adding manually, which is helpful In order to reduce the user's operational complexity, improve the user's operational efficiency, improve the intelligence of electronic equipment, and enhance the user experience.
- the method before the first email address is automatically added to the VIP mail contact, the method further includes: determining that the first email address is a sender of non-spam emails address.
- the first email address before the first email address is automatically added to the VIP email contact, the first email address can be filtered to determine whether it is the sender address of spam emails, and if it is, it can be omitted.
- the first email address is added to the VIP mail contact, which helps to avoid mistakenly adding the email address that the user does not want to add to the VIP mail contact.
- the method before the first email address is automatically added to the VIP mail contact, the method further includes: determining that the first email address is not in the VIP mail contact.
- the present technical solution provides a device for adding mail contacts, the device is included in an electronic device, and the device has the function of realizing the above aspects and the behavior of the electronic device in the possible implementation manners of the above aspects.
- the function can be realized by hardware, or by hardware executing corresponding software.
- the hardware or software includes one or more modules or units corresponding to the above-mentioned functions.
- the present technical solution provides an electronic device, including: one or more processors; a memory; multiple application programs; and one or more computer programs.
- one or more computer programs are stored in the memory, and the one or more computer programs include instructions.
- the electronic device is caused to execute the method for adding a mail contact in any one of the possible implementations of the foregoing aspects.
- the present technical solution provides an electronic device, including one or more processors and one or more memories.
- the one or more memories are coupled with one or more processors, and the one or more memories are used to store computer program codes.
- the computer program codes include computer instructions.
- the electronic device executes A method for adding a mail contact in a possible implementation of any one of the foregoing aspects.
- the present technical solution provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute any one of the possible implementations of any one of the above aspects. method.
- the present technical solution provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to execute the method of adding a mail contact in any one of the above-mentioned possible designs.
- Fig. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- Fig. 2 is a software structure block diagram of an electronic device provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of data access between application A and application B provided by an embodiment of the present application.
- Figure 4 is a set of GUIs provided by an embodiment of the application.
- Figure 5 is another set of GUIs provided by an embodiment of the present application.
- Figure 6 is another set of GUIs provided by an embodiment of the present application.
- Fig. 7 is another set of GUI provided by an embodiment of the present application.
- Fig. 8 is another set of GUI provided by an embodiment of the present application.
- Fig. 9 is a schematic flowchart of a method for adding a mail contact provided by an embodiment of the present application.
- Fig. 10 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
- references described in this specification to "one embodiment” or “some embodiments”, etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the phrases “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless it is specifically emphasized otherwise.
- the terms “including”, “including”, “having” and their variations all mean “including but not limited to” unless otherwise specifically emphasized.
- the electronic device may be a portable electronic device that also contains other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, and a wearable electronic device with wireless communication function (such as a smart watch) Wait.
- portable electronic devices include but are not limited to carrying Or portable electronic devices with other operating systems.
- the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) and the like. It should also be understood that, in some other embodiments, the above electronic device may not be a portable electronic device, but 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, and an antenna 2.
- Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
- SIM Subscriber identification module
- the sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
- the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
- AP application processor
- modem processor modem processor
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- the different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 to store instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
- the processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB Universal Serial Bus
- the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may include multiple sets of I2C buses.
- the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
- the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
- the I2S interface can be used for audio communication.
- the processor 110 may include multiple sets of I2S buses.
- the processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170.
- the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
- the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
- the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
- the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus used for asynchronous communication.
- the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
- the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
- the MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
- the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
- the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
- the GPIO interface can be configured through software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
- GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic illustration, and does not constitute a structural limitation of the electronic device 100.
- the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
- the charging management module 140 is used to receive charging input from the charger.
- the charger can be a wireless charger or a wired charger.
- the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
- the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
- 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 supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 141 may also be provided in the processor 110.
- the power management module 141 and the charging management module 140 may also be provided in the same device.
- the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
- the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
- the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is processed by the baseband processor and then passed 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.
- the modem processor may be an independent device.
- the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication technology
- infrared technology infrared, IR
- 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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves through the antenna 2 and radiate it.
- the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
- the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite-based augmentation systems
- the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
- LCD liquid crystal display
- OLED organic light-emitting diode
- active-matrix organic light-emitting diode active-matrix organic light-emitting diode
- AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
- the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
- the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
- the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
- ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 193.
- the camera 193 is used to capture still images or videos.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- ISP outputs digital image signals to DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats.
- the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs.
- the electronic device 100 can play or record videos in a variety of encoding formats, for example: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
- MPEG moving picture experts group
- NPU is a neural-network (NN) computing processor.
- NN neural-network
- the NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
- the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
- the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
- the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
- UFS universal flash storage
- the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
- the audio module 170 can also be used to encode and decode audio signals.
- the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
- the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
- the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
- the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
- the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to 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, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
- the earphone interface 170D is used to connect wired earphones.
- the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association
- the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
- the pressure sensor 180A may be provided on the display screen 194.
- the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
- the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
- the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
- the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
- touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
- the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
- the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
- the gyro sensor 180B can be used for image stabilization.
- the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the air pressure sensor 180C is used to measure air pressure.
- the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
- the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
- features such as automatic unlocking of the flip cover are set.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers and so on.
- the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
- 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 uses a photodiode to detect infrared reflected light from nearby objects. 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 can determine that there is no object near the electronic device 100.
- the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
- the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
- the ambient light sensor 180L is used to sense the brightness of the ambient light.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
- the temperature sensor 180J is used to detect temperature.
- the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
- the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
- the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- Touch sensor 180K also called “touch panel”.
- the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
- the touch sensor 180K is used to detect touch operations acting on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- the visual output related to the touch operation can be provided through the display screen 194.
- the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
- the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
- the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
- the application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
- the button 190 includes a power button, a volume button, and so on.
- the button 190 may be a mechanical button. It can also be a touch button.
- the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
- the motor 191 can generate vibration prompts.
- the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
- touch operations applied to different applications can correspond to different vibration feedback effects.
- Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
- Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
- the SIM card interface 195 is used to connect to the SIM card.
- the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
- the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
- the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
- the SIM card interface 195 can 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 call and data communication.
- the electronic device 100 adopts an eSIM, that is, 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 adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- the embodiment of the present application takes a layered Android system as an example to illustrate the software structure of the electronic device 100.
- FIG. 2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
- the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
- the application layer can include a series of application packages.
- the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
- the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer can include content provider, content accessor, window manager, view system, phone manager, resource manager, notification manager, etc.
- the content provider is used to store and obtain data, and make these data accessible to applications.
- the data may include videos, images, audios, calls made and received, browsing history and bookmarks, phone book, short messages, etc.
- Application A can access the data provided by the content provider of Application B through the content resolver of Application A.
- Android In order to exchange data between applications, Android provides a content provider, which is a standard API for data exchange between different applications.
- content provider which is a standard API for data exchange between different applications.
- the operation data may include query data (query()) and so on.
- the operation data may include query data.
- the application A may access the data provided by the content provider of the application B through the query interface in the content resolver of the application A.
- the operation data can also include others, such as adding data (insert()), deleting data (delete()), updating data (updata()), and so on.
- application A may add data to the content provider of application B through the insert interface in the content resolver of application A.
- application A may delete data from the content provider of application B through the delete interface in the content resolver of application A.
- application A may update the 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 can come from a database, a file, or data on the Internet (for example, data obtained from the cloud side, or data obtained from a server).
- the data provided by the contact data provider may come from a contact database, which may be a contact provider in the application layer; or, the data provided by the contact data provider The data can also come from a file stored locally on the electronic device; or, the data provided by the contact data provider can also come from the cloud side.
- the window manager is used to manage window programs.
- the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
- the view system includes visual controls, such as controls that display text and controls that display pictures.
- the view system can be used to build applications.
- the display interface can be composed of one or more views.
- a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
- the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
- Android runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
- the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
- the application layer and the application framework layer run in a virtual machine.
- the virtual machine executes the java files of the application layer and the application framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- the system library can include multiple functional modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
- surface manager surface manager
- media library media libraries
- 3D graphics processing library for example: OpenGL ES
- 2D graphics engine for example: SGL
- the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
- the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
- the 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
- FIG 3 shows a schematic diagram of data access between application A and application B.
- application A (App A) uses the content resolver of application A to access the content provider of application B (App B).
- the content resolver of the application A needs to use a uniform resource identifier (URI), and the URI is the identifier of the content resolver of the application A to perform data interaction with the content provider of the application B.
- URI uniform resource identifier
- the URI can be divided into four parts:
- the URI prefix of the content provider can be specified by Android as content: //;
- Authorization information Since the content provider is uniquely identified, the content resolver can find the corresponding content provider based on this identifier.
- 3Path An item under the URI, used to determine the requested path (which data is accessed). Popular here will be the name of the table in the database.
- ID 4Identification (ID) of the 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 there is no identifier of the requested specific data , It means that all data needs to be returned.
- a path like this can be constructed: content://contactprovider/contact/10.
- the content resolver wants to operate the name field of the name (name) record with ID 10 in the contact list of the contact database, and this path can be constructed: content://contactprovider/contact/10/name.
- the content resolver wants to operate all the favorite contact records in the contact list of the contact database, and can construct such a path: content://contactprovider/vip_contact.
- the favorite contact may be a contact manually added by the user or the electronic device according to a preset rule to the contact favorite.
- the content resolver wants to operate the email addresses of all contacts in the contact list of the contact database, and can construct such a path: content://contactprovider/contact/email_adress.
- the content resolver needs to operate all the call records in the call record list of the contact database, and can construct such a path: content://contactprovider/calls.
- the content resolver needs to operate all the short message records in the short message list of the short message database, and can construct such a path: content://message_log/messages.
- the data to be operated on by the content resolver may be from other storage methods such as files in addition to the database.
- XML extensible markup language
- the above describes how the content resolver of application A accesses the content provider of application B (App B), and the following describes the data in the database in the content provider of application B (App B).
- a database in a contact application for example, a contact provider
- Table 1 shows a list of contacts and their corresponding information in the contact application database.
- Table 1 is only illustrative, and the information corresponding to each contact may include less or more information.
- the information corresponding to each contact may also include work address information, nickname information, birthday information, and so on.
- the content resolver corresponding to the application can call the query interface to send the corresponding query interface to the query interface of the content provider corresponding to the contact application.
- the URI which can be content://contactprovider/contact.
- the query interface of the content provider of the contact application receives the URI, it can determine that the application needs to query the contact and its corresponding information in the database of the contact application. After finding the information in the database, the contact application The query interface of the content provider can return the queried information to the query interface of the content resolver corresponding to the application.
- the content resolver corresponding to the application can call the query interface to apply the corresponding content to the contact
- the query interface of the provider sends the corresponding URI, which can be content://contactprovider/contact/email_address.
- the query interface of the content provider of the contact application receives the URI, it can be determined that the application needs to query the contact and the email address information corresponding to the contact.
- the content provider of the contact application After finding the information in the database, the content provider of the contact application The query interface can return the queried information to the query interface of the content resolver corresponding to the application.
- 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, as shown in Table 2.
- Table 3 shows an information list of call records of contacts in the contact application database.
- Table 3 is only illustrative, and the information list of the call record may include less or more information.
- the call record corresponding to each contact may also include the earliest call time, the number of calls in the most recent week, and so on.
- the content resolver corresponding to the application can call the query interface to send the corresponding URI to the query interface of the content provider corresponding to the contact application.
- the URI can be It is content://contactprovider/calls.
- the query interface of the content provider of the contact application receives the URI, it can be determined that the application needs to query the call record information in the database of the contact application. After the information is found in the database, the content provider of the contact application The query interface can return the queried information to the query interface of the content resolver corresponding to the application.
- the content resolver corresponding to the application can call the query interface to send the corresponding URI to the query interface of the content provider corresponding to the contact application.
- the URI can be It is content://contactprovider/calls/totalnumberofcalls.
- 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, as shown in Table 4.
- Table 5 shows a list of favorite contacts in the contact application database.
- Table 1, Table 3, and Table 5 can be divided into multiple tables and stored in the database of the contact application, or any two tables can be combined into one table, or Table 1, Table 3 and Table 5 are independently stored in the database of the contact application.
- Table 6 shows the short message list information in the short message application database.
- Table 6 is only illustrative, and the short message list may include less or more information.
- the short message record corresponding to each contact may also include the earliest receiving/sending time, the number of exchanges of short messages in the last week, and so on.
- the content resolver corresponding to the application can call the query interface to send the corresponding URI to the query interface of the content provider corresponding to the short message application.
- the URI Can be content://message_log/messages.
- the content resolver corresponding to the application can call the query interface to send the corresponding query interface to the corresponding content provider of the contact application
- the URI which can be content://message_log/messages/total number of messages.
- the query interface of the content provider of the SMS application receives the URI, it can be determined that the application needs to query the information of the total number of exchanges of short messages in the call log.
- the query of the content provider of the contact application The interface can return the queried information to the query interface of the content resolver corresponding to the application.
- 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, as shown in Table 7.
- Figure 4 shows a set of graphical user interfaces (GUI) of the mobile phone.
- GUI graphical user interfaces
- the GUI is the desktop 401 of the mobile phone.
- the mobile phone detects that the user clicks the icon 402 of the mail application (application, APP) on the desktop 401, it can start the mail application and display the GUI shown in (b) in Figure 4, which can be called a mail application interface.
- the mail application interface includes address book, inbox, outbox, draft box, VIP (very important person, VIP) mail contacts, etc.
- the address book includes the recipient’s name and email address recorded by the user Information such as address and mobile phone number.
- the mobile phone detects that the user has clicked on the control 403, it can display the GUI as shown in (c) in FIG.
- VIP mail contacts refer to particularly important mail contacts. For mails from VIP mail contacts, the system can mark them to remind users, for example, mark a star next to their name Or, add a folder for each VIP mail contact, so that the user can view all the mails of the VIP mail contact.
- the address book of the mail application includes 10 mail contacts.
- the mobile phone detects that the user clicks the control 404 corresponding to the mail contact, the mobile phone can add the corresponding mail contact to the VIP mail contact.
- FIG. 4 is the VIP mail contact interface of the mail application.
- the mobile phone detects that the user clicks the control 404 corresponding to Apple, Bob, and Charles in the mail contact, the mobile phone can Apple, Bob and Charles are added to VIP mail contacts. The user can click on the corresponding Apple in the VIP mail contact to view the mail information interacting with Apple.
- GUI shown in (e) of FIG. 4 is the setting interface of the mail application.
- the GUI shown in (e) of FIG. 4 can be displayed.
- the GUI includes account settings, email text size settings, whether to always Bcc to yourself, and whether to automatically add VIP contacts, etc.
- the mobile phone detects that the user has opened the control 406 for automatically adding VIP contacts, it may display the GUI as shown in (f) in FIG. 4.
- the mobile phone can display a window 407, which includes an introduction to the function of automatically adding VIP contacts.
- the window 407 includes text reminders, for example, "After enabling this function, you can automatically add contacts with high frequency of calls to VIP mail contacts.”
- the GUI is the interface of the phone application. It can be seen from the interface of the phone application that the user's recent frequent contacts include Frank and Joe.
- a contact with a high frequency of talking with the user can also be understood as a contact whose frequency of talking with the user is greater than or equal to the first frequency threshold in the first time period.
- the mobile phone can determine whether the contact with the user whose frequency of talking with the user is greater than or equal to the first frequency threshold in the first time period is a harassing call, an intermediary call, etc. Add these contacts to the VIP mail contact list.
- the mobile phone can automatically add contacts with a high frequency of calls to the VIP mail contacts of the mail application, avoiding manual addition by the user, and helping to reduce the complexity of the user's operation. Provide users with operating efficiency, improve the intelligence of electronic devices, and enhance user experience.
- the mobile phone can automatically add a contact with an email address and a frequent call with the user to the user's VIP mail contact, that is, when the mobile phone automatically adds a VIP mail contact, it needs to determine whether the contact has an email address and Whether it is a contact with a high frequency of calls with the user.
- the mobile phone can automatically add the email addresses of the contacts favorited by the user in the contacts application to the VIP mail contacts of the mail application.
- the mobile phone may also automatically add the email addresses of contacts whose call frequency with the user during the first time period is greater than or equal to the first frequency threshold to other types of mail contacts in the mail application. Yes, these email addresses are automatically added to the address book of the mail application.
- the address book can be as shown in (c) in Figure 4, and all the mail contacts of the user can be saved in the address book.
- a contact is a contact in a non-mail application, which can refer to a phone or a contact application
- the user can search for the corresponding contact in the phone or contact application, and then perform operations such as calling and sending short messages with the contact; or, the contact can also refer to a social application (for example, Facebook, Twitter) , WeChat or QQ), the user can find the corresponding contact in the social application to send a message to the contact, initiate a video call or voice call, etc.
- the mail contact refers to the contact in the mail application, and the user can search for the corresponding mail contact in the mail application, so as to find the mails that communicate with the contact, and send mails to the contact.
- Figure 5 shows another set of GUIs of the mobile phone.
- the mobile phone When the mobile phone detects that the user has started the operation of automatically adding VIP mail contacts, it can display the GUI as shown in (a) in Figure 5.
- the mobile phone can display a window 501, which includes an introduction to the function of automatically adding VIP contacts.
- the window 501 includes a text reminder "After turning on this function, your favorite contacts can be automatically added to VIP mail contacts".
- Favorited contacts refer to call contacts that the user has performed a favorite operation, and the user can favorite one or more of the contacts to favorite contacts for quick viewing.
- the VIP mail contacts of the mail application automatically add Frank and Joe.
- Frank and Joe are all contacts in the contacts application that have email addresses and are user favorites.
- the mobile phone can automatically add the user's favorite contacts to the VIP mail contacts of the mail application, avoiding manual addition by the user, and helping to reduce the user's operational complexity and improve The user's operating efficiency improves the intelligence of electronic equipment and enhances the user experience.
- the mobile phone can add a contact in the contact application that has an email address and is a user's favorite to the VIP mail contact of the mail application, that is, when the mobile phone automatically adds a VIP mail contact, it needs to determine whether the contact has an email address. Address and whether it is a user's favorite contact.
- the mobile phone can automatically add the email addresses of the contacts whose frequency of communicating with the user in the short message application within the preset time period is greater than or equal to the preset frequency threshold to the VIP mail contacts of the mail application in.
- the mobile phone can also automatically add the email addresses of contacts whose short message frequency is greater than or equal to the preset frequency threshold within a preset time period to other types of email contacts in the mail application In, for example, these email addresses are automatically added to the address book of the mail application.
- Figure 6 shows another set of GUIs of the mobile phone.
- the mobile phone When the mobile phone detects that the user has started the operation of automatically adding VIP mail contacts, it can display the GUI as shown in (a) in Figure 6.
- the mobile phone can display a window 601 that includes an introduction to the function of automatically adding VIP contacts.
- the window 601 includes a text reminder that "after turning on this function, you can automatically add contacts who exchange short messages with you to VIP mail contacts".
- the contact person who exchanges short messages with the user may refer to the contact person who receives the short message sent by the user, and/or the contact person who sends the short message to the user.
- the VIP mail contacts of the mail application automatically add Frank and Joe.
- Frank and Joe have email addresses in the contacts application and communicate with users in the short message application. Contacts with high frequency of short messages.
- the data between the phone or contact application and the short message application is intercommunication, that is, when the phone or the contact saved in the contact application sends a short message to the user, the short message of the phone is The name and mobile phone number of the sender of the short message can be displayed in the messaging application.
- the mobile phone can automatically add contacts in the short message application that have an email address and have a high frequency of short message exchange with the user to the VIP mail contacts of the mail application.
- the mobile phone can automatically add a contact with an email address and a high frequency of communicating with the user to the user's VIP mail contact, that is, when the mobile phone automatically adds a VIP mail contact, it needs to determine whether the contact has an mailbox Address and whether it is a contact with a high frequency of short message exchange with the user.
- the mobile phone can automatically add contacts with a high frequency of communicating with the user to the VIP email contacts of the mail application, which avoids the user from adding manually and helps reduce user operations Complexity, improve user operation efficiency, improve the intelligence of electronic equipment, and enhance user experience.
- the mobile phone can automatically add the email addresses of contacts whose frequency of communicating emails with the user within a preset time period is greater than or equal to the preset frequency threshold to the VIP email contacts of the mail application.
- the mobile phone can also automatically add contacts whose frequency of communicating with the user is greater than or equal to the preset frequency threshold to other types of mail contacts in the mail application. For example, these email addresses are automatically added to Mail application’s address book.
- Figure 7 shows another set of GUIs of the mobile phone.
- the mobile phone can display a window 701, which includes an introduction to the function of automatically adding VIP contacts.
- the window 701 includes a text reminder that "After you enable this function, the contacts you frequently exchange emails with are automatically added to VIP email contacts".
- the GU is another interface of the VIP mail contact in the mail application.
- the VIP mail contacts of the mail application automatically add Dendi and Emily.
- Dendi and Emily are all contacts in the mail application that communicate with users frequently.
- the email contact with a high frequency of email exchange with the user may be the email address of the contact whose frequency of email exchange with the user is greater than or equal to the preset frequency within a preset time period.
- the mobile phone may contact emails within a preset time period or emails with a high frequency of email exchanges. People’s mails are filtered to determine which mails are spam and which are not spam.
- the conditions for the mobile phone to determine whether an email is spam include but are not limited to:
- mobile phones can identify based on keywords, and first collect some characteristic words in spam emails (such as discounts, free, promotions, etc.) to form a large database. When an email is sent, it will automatically match the email. If there are similar words in the header, mail title, mail content, and keywords in these libraries, it will be judged as spam.
- spam emails such as discounts, free, promotions, etc.
- the user sets the mail received between 00:00 and 07:00 as spam.
- the user sets a mail with a mail size greater than 10Mb as spam.
- the mobile phone can determine according to the website that the URL link points to. If the website is an advertiser website or a website that other users do not want to open, it can determine that the email is an incoming email.
- the mobile phone will filter the mails received within the preset time to determine which mails are spam.
- the mobile phone can only judge the sender address that is identified as non-spam to determine whether it is a VIP mail contact. It should be understood that if Dendi and Emily are saved in the mail application, that is, Dendi's name and email address, and Emily's name and email address are saved, then the names of Dendi and Emily can be displayed in the VIP email contact. If only the email addresses of Dendi and Emily are saved in the mail application, the corresponding email addresses of Dendi and Emily can be displayed in the VIP mail contacts.
- the mobile phone can automatically add the mail contacts in the mail application that communicate with the user frequently to the VIP mail contacts of the mail application, which avoids the user from adding manually and helps Reduce user operation complexity, improve user operation efficiency, improve the intelligence of electronic equipment, and enhance user experience.
- the mobile phone may prompt the user to select the contact type that needs to be automatically added to the VIP mail contact.
- Figure 8 shows another set of GUIs of the mobile phone.
- This GUI is another setting interface of the mail application.
- the GUI includes account settings, email text size settings, whether to always BCC to yourself, and whether to automatically add VIP contacts People set.
- the mobile phone detects that the user has clicked the operation of the control for automatically adding VIP mail contacts, it can display the GUI as shown in (b) in FIG. 8.
- the mobile phone can display a window 801 that includes the option of automatically adding VIP mail contacts.
- the mobile phone can remind the user to select the type of contact that needs to be automatically added, where the type of contact that needs to be automatically added includes "contacts with high frequency ", "Your favorite contacts in the Contacts application", "Contacts who exchange messages with you frequently” and "Contacts who exchange emails with you frequently”.
- the mobile phone detects that the user selects the control 802 corresponding to the "contact with you frequently” and detects that the user clicks on the control 803, it can automatically add the contact with the user frequently to the VIP mail contact .
- the mobile phone may automatically add users whose frequency of talking with the user during the first time period is higher than the first frequency threshold to the VIP mail contacts.
- the mobile phone can automatically add users who have made more than or equal to 20 calls to the user within a week to the VIP mail contact.
- the mobile phone may remind the user to select the type of contact that needs to be automatically added, where the type of contact that needs to be automatically added includes “contacts with email addresses and high frequency of calls with you", “Contacts that have an email address in the Contacts application and your favorite contacts”, “Contacts who have an email address and have a high frequency of messaging with you”, and “Contacts with a high frequency of messaging with you”.
- the mobile phone can automatically add users who have more than or equal to 20 calls with the user within a week and have an email address to the VIP mail contact.
- the mobile phone allows the user to select the type of contacts to be added automatically, which avoids the user from manually adding, which helps to reduce the user’s operational complexity, improve the user’s operational efficiency, and improve electronic
- the degree of intelligence of the equipment improves the user experience.
- FIG. 9 shows a schematic flowchart of a method 900 for adding a contact provided by an embodiment of the present application. As shown in FIG. 9, the method 900 includes:
- the electronic device obtains one or more contacts in the first application and contact information associated with the one or more contacts.
- the content resolver of the mail application can call the query interface to send the first query request information to the query interface corresponding to the content provider of the phone or contact application .
- the first query request information is used to request query information about the call records with one or more contacts in the phone or contact application within the first time period; or, the first query request information is used to request query contacts Whether one or more contacts in the application are the user's favorite contact information.
- the content provider of the phone or contact application parses the URI, and then queries the call record information in the contact application database, and carries the queried information in the first query request response information through query
- the interface is sent to the query interface of the content resolver of the mail application.
- the content resolver of the mail application returns the received data to the mail application of the application layer.
- the mail application can determine, from the one or more contacts, the contact with the user whose call frequency is greater than or equal to the first frequency threshold in the first time period according to the returned data; or, from the one or more contacts Determine the user's favorite contacts in the contacts application.
- the first query request information includes a URI
- the URI is used to indicate to query call record information, or to indicate to query the user's favorite contact information.
- the content provider of the contact application can send all the call records of the queried user to the content resolver of the mail application; or the content provider of the contact application can also send The call history of the user within a period of time (for example, a month or a week) is sent to the content resolver of the mail application.
- the mail application may determine, from the one or more contacts, the contact whose call frequency is greater than or equal to the first frequency threshold in the first time period.
- the mail application can determine the contacts of the user whose call history is greater than or equal to 20 times in a week; for example, the mail application can determine the contacts of the user whose call records are greater than or equal to 200 times in a month.
- the content provider of the contact application may send the queried user's favorite contact information to the content resolver of the mail application.
- the contact application can determine the user's favorite contact information from the one or more contacts.
- the content resolver of the mail application can call the query interface to send the second query request information to the query interface corresponding to the content provider of the short message application.
- the second query request information is used to request to query the information of the short message exchange with one or more contacts in the short message application in the second time period.
- the content provider of the short message application parses the URI, and then queries the interoperable short message information in the short message application database, and carries the queried information in the second query request response information and sends it through the query interface
- the query interface for the content resolver of the mail application.
- the content resolver of the mail application returns the received data to the mail application of the application layer.
- the mail application may determine, from the one or more contacts according to the returned data, the contacts whose frequency of short message exchange with the user is greater than or equal to the second frequency threshold in the second time period.
- the phone or contact application can exchange data with the short message application, and the mail application queries the data stored in the short message application, and it can also be understood as the mail application queries the phone or contacts stored in the application. data.
- the mail application may query through the mail application database to determine the mail contacts whose number of exchanges of mails with the user is greater than or equal to the preset value in the third time period. It should be understood that the number of emails exchanged with the user may be the number of emails sent by the email contact received by the user, and/or the number of emails sent by the user to the email contact.
- 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 email address of each contact in the at least one contact is stored in the first application .
- the first application is a phone or contact application
- the contact information is call data of the one or more contacts stored in the phone or contact application
- each contact in the at least one contact is In the first time period, the user talks with a contact whose frequency is greater than or equal to the first frequency threshold; or, in the first time period, the user talks with a contact greater than or equal to the preset number of calls (including the first contact The number of outgoing calls, and/or the number of received calls from the first contact).
- the first application is a phone or contact application
- the contact information is short message data of the one or more contacts stored in the phone or contact application, and each contact in the at least one contact
- the user exchanges short messages with a contact whose frequency is greater than or equal to the second frequency threshold; or, in the second time period, the number of times the user exchanges short messages with him is greater than the preset number of short message exchanges (Including the number of short messages sent to the first contact, and/or the number of receiving short messages sent by the first contact).
- the first application is a contact application
- the contact information is whether the one or more contacts saved in the contact application are favorite contacts
- each contact in the at least one contact is a user Favorite contacts.
- the mail application may continue to send the third query request information to the content provider of the contact application through the content resolver of the mail application, and the third query request information is used to query the at least one contact Does the person have an email address.
- the content provider of the contact application can query the at least one email address in the contact application database, and carry the query result in the third query request response information Sent to the content resolver of the mail application.
- the electronic device After the mail application receives the email address information of the at least one contact, if each contact in the at least one contact has a corresponding email address, the electronic device can send the The email address is added to the first mail contact collection.
- the first query request message sent by the content resolver of the mail application to the content provider of the contact application may carry the URI for querying the phone number or the call record of the contact in the contact application and the query for the email address of the contact URI.
- the content provider of the contact application may, after receiving the first query request information, carry the query result in the first query request response information and send it to the content resolver of the mail application.
- the mail application may first determine the information of at least one contact whose call frequency is greater than or equal to the first frequency threshold in the first time period, and then determine the contact with an email address among the at least one contact .
- the mail application can also first determine all contacts with email addresses, and then determine from the contacts with email addresses the contacts whose call frequency is greater than or equal to the first frequency threshold in the first time period .
- the electronic device adds the email address of each contact in the at least one contact to the first mail contact set in the mail application.
- the electronic device adds the email address of at least one contact to the first set of email contacts in the mail application. It can also be understood that the electronic device adds the email address of at least one contact to the email. The first email address set in the application.
- the first set of email addresses may be the set of email addresses of VIP mail contacts in the mail application, or may be the set of email addresses of all contacts in the mail application. It does not make any restrictions.
- the electronic device may remind the user to select an email address from the multiple email addresses to add to the first set of email addresses; or The device may save the first email address and add it to the first email address set by default; or the electronic device may add the user's newly saved email address to the first email address set.
- the electronic device may first determine whether the email address of each contact in the at least one contact is already included in the first set of email addresses. When none of the email addresses of the at least one contact is in the first email address set, the electronic device may automatically add the email address of the at least one contact to the first email address set; in the at least one contact When the email addresses of at least part of the contacts in the first email address set are already in the first email address set, the electronic device may determine not to add the email addresses of the at least part of the contacts to the first email address set, thereby avoiding repeatedly adding the same email address address.
- the first mail contact set is VIP mail contacts of a mail application.
- the mobile phone can automatically add the email addresses of some important contacts to the VIP mail contacts of the mail application.
- the method of adding includes but not limited to the frequency of calling with the user.
- the email address of the high contact is automatically added to the VIP mail contact
- the email address of the user's favorite contact is automatically added to the VIP mail contact
- the email address of the contact who exchanges short messages frequently with the user is automatically added
- the email addresses of the contacts who exchange emails frequently with the user are automatically added to the VIP mail contacts. This prevents the user from adding manually, which helps to reduce the user’s operational complexity and improve the user’s Operation efficiency, improve the intelligence of electronic equipment, and enhance user experience.
- a mail application can exchange data with a social application.
- the database of the social application stores the user’s friends and the email address information corresponding to each friend.
- the electronic device can determine whether to use the The friend's email address is added to the VIP mail contact list of the mail application. If the whitelist mechanism is adopted in the social application, the electronic device does not need to perform filtering operations when automatically adding VIP mail contacts, because the user's friends in the social application are all friends who have been authenticated by the user.
- the frequency of interaction with each friend may include the frequency of messaging with each friend (for example, the number of messages exchanged with the friend in a week), and the frequency of calling each friend (for example, with the The number of voice calls or video calls made by friends) and so on.
- the social application is Facebook, Twitter, QQ, WeChat, MSN, etc.
- an electronic device in order to implement the above-mentioned functions, includes hardware and/or software modules corresponding to each function.
- this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Those skilled in the art can use different methods for each specific application in combination with the embodiments to implement the described functions, but such implementation should not be considered as going beyond the scope of the present application.
- the electronic device can be divided into functional modules according to the foregoing method examples.
- each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
- the above integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
- FIG. 10 shows a schematic diagram of a possible composition of the electronic device 1000 involved in the foregoing embodiment.
- the electronic device 1000 may include: an acquiring unit 1001, a determining unit 1002, and an adding unit 1003.
- the acquiring 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 technology described herein.
- the determining unit 1002 may be used to support the electronic device 1000 to perform the above step S920, and/or to perform other processes of the technology 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 technology described herein.
- the electronic device provided in this embodiment is used to execute the above method for adding a mail contact, and therefore can achieve the same effect as the above implementation method.
- the electronic device may include a processing module, a storage module, and a communication module.
- the processing module can be used to control and manage the actions of the electronic device, for example, can be used to support the electronic device to execute the steps performed by the above-mentioned units.
- the storage module can be used to support the electronic device to execute the storage program code and data.
- the communication module can be used to support communication between electronic devices and other devices.
- the processing module may be a processor or a controller. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of this application.
- the processor may also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on.
- the storage module may be a memory.
- the communication module may specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, and other devices that interact with other electronic devices.
- the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1.
- This embodiment also provides a computer storage medium in which computer instructions are stored.
- the computer instructions are executed on an electronic device, the electronic device is caused to execute the above-mentioned related method steps to realize the adding of mail contacts in the above-mentioned embodiment. Methods.
- This embodiment also provides a computer program product, which when the computer program product runs on a computer, causes the computer to execute the above-mentioned related steps, so as to implement the method for adding a mail contact in the above-mentioned embodiment.
- the embodiments of the present application also provide a device.
- the device may specifically be a chip, component or module.
- the device may include a connected processor and a memory; wherein the memory is used to store computer execution instructions.
- the processor can execute computer-executable instructions stored in the memory, so that the chip executes the method for adding a mail contact in the foregoing method embodiments.
- the electronic equipment, computer storage medium, computer program product, or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding method provided above. The beneficial effects of the method will not be repeated here.
- the disclosed device and method may be implemented in other ways.
- the device embodiments described above are only illustrative, for example, the division of modules or units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separate, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
- the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of software products, which are stored in a storage medium It includes several instructions to make a device (may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods in the various embodiments of the present application.
- the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
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
Provided are a method for adding a mail contact, and an electronic device. The method comprises: an electronic device acquiring one or more contacts in a first application and contact information associated with the one or more contacts; the electronic device determining at least one contact from one or more pieces of contact information according to the contact information, and determining that a mailbox address of each contact of the at least one contact is stored in the first application; and the electronic device automatically adding the mailbox address of each contact of the at least one contact to a first mailbox address set in a mail application. According to the method for adding a mail contact of the embodiments of the present application, the electronic device can automatically add mailbox addresses of some relatively important contacts to the first mailbox address set in the mail application, thereby contributing to reducing the complexity of the operation by a user, improving the efficiency of operation by the user, improving the degree of intelligence of the electronic device and improving the user experience.
Description
本申请要求在2019年4月26日提交中国国家知识产权局、申请号为201910346380.7的中国专利申请的优先权,发明名称为“一种添加邮件联系人的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China with application number 201910346380.7 on April 26, 2019, and a Chinese patent application with the title of "A method and electronic device for adding email contacts" Priority, the entire content of which is incorporated in this application by reference.
本申请涉及电子设备领域,并且更具体地,涉及一种添加邮件联系人的方法和电子设备。This application relates to the field of electronic devices, and more specifically, to a method and electronic device for adding mail contacts.
很多用户在特定的某个邮件文件夹查看一些重要的联系人邮件,需要手动输入邮箱地址或者进入邮件联系人列表中添加需要关注的邮件联系人到贵宾(very important person,VIP)邮件联系人中,这样才能在VIP邮件联系人对应的VIP邮件文件夹中查看这些人的邮件。Many users view some important contact emails in a certain mail folder, and need to manually enter the email address or enter the mail contact list to add the mail contacts that need to be followed to VIP (VIP) mail contacts , So that you can view the mail of these people in the VIP mail folder corresponding to the VIP mail contact.
现有的添加VIP邮件联系人的过程中,需要用户手动输入或者添加,这样可能带来操作复杂等问题,导致用户体验不好。In the existing process of adding VIP mail contacts, the user needs to manually input or add, which may cause problems such as complicated operations, resulting in a poor user experience.
发明内容Summary of the invention
本申请提供一种添加邮件联系人的方法和电子设备,有助于提升用户的操作效率和电子设备的智能化程度,并且有助于提升用户体验。The present application provides a method and electronic device for adding email contacts, which helps to improve the user's operation efficiency and the degree of intelligence of the electronic device, and helps to improve the user experience.
第一方面,提供了一种添加邮件联系人的方法,该方法应用于电子设备,该方法包括:电子设备获取第一应用中的第一联系人以及与该第一联系人相关联的第一联系人信息,该第一应用为该电子设备中除邮件应用以外的应用;在该第一联系人信息满足预设条件,且该第一应用中保存有该第一联系人的一个或者多个邮箱地址时,该电子设备将该一个或者多个邮箱地址自动添加到邮件应用中的第一邮箱地址集合中。In a first aspect, a method for adding a mail contact is provided. The method is applied to an electronic device. The method includes: the electronic device obtains a first contact in a first application and a first contact associated with the first contact. Contact information, the first application is an application other than the mail application in the electronic device; where the first contact information satisfies a preset condition, and the first application stores one or more of the first contact In the case of an email address, the electronic device automatically adds the one or more email addresses to the first email address set in the mail application.
本申请实施例中,电子设备可以从除邮件应用以外的应用中获取第一联系人以及与第一联系人相关联的第一联系人信息,通过判断第一联系人信息满足预设条件且第一联系人对应一个或者多个邮箱地址,电子设备可以将该一个或者多个邮箱地址自动加入邮件应用中的第一邮箱地址集合中,避免了用户手动进行添加,有助于降低用户的操作复杂度、提供用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the embodiment of the present application, the electronic device can obtain the first contact and the first contact information associated with the first contact from applications other than the mail application, by determining that the first contact information satisfies a preset condition and the first contact information A contact corresponds to one or more email addresses, and the electronic device can automatically add the one or more email addresses to the first email address set in the mail application, avoiding manual addition by users and helping to reduce user complexity Provide users with operating efficiency, improve the intelligence of electronic equipment, and enhance user experience.
结合第一方面,在第一方面的某些实现方式中,该第一应用为电话或者联系人应用,该第一联系人信息为该电话或者联系人应用中保存的该第一联系人的通话数据,该预设条件为在第一时间段内,与该第一联系人的通话频率大于或者等于第一频率阈值。With reference to the first aspect, in some implementations of the first aspect, the first application is a phone or contact application, and the first contact information is a call of the first contact saved in the phone or contact application According to the data, the preset condition is that the frequency of the call with the first contact is greater than or equal to the first frequency threshold in the first time period.
本申请实施例的添加邮件联系人的方法,电子设备可以自动将通话频率高的联系人添加到邮件应用的第一邮箱地址集合中,避免了用户手动进行添加,有助于降低用户的操作复杂度、提供用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the method for adding email contacts in the embodiment of the present application, the electronic device can automatically add contacts with high frequency of calls to the first email address set of the email application, avoiding manual addition by the user and helping to reduce the complexity of the user's operation Provide users with operating efficiency, improve the intelligence of electronic equipment, and enhance user experience.
结合第一方面,在第一方面的某些实现方式中,该第一应用为电话或者联系人应用, 该第一联系人信息为该电话或者联系人应用中保存的该第一联系人的短消息数据,该预设条件为在第二时间段内,与该第一联系人互通短消息的频率大于或者等于第二频率阈值。With reference to the first aspect, in some implementations of the first aspect, the first application is a phone or contact application, and the first contact information is a short message of the first contact stored in the phone or contact application. Message data, the preset condition is that the frequency of short message exchange with the first contact is greater than or equal to the second frequency threshold in the second time period.
本申请实施例的添加邮件联系人的方法,电子设备可以自动将与用户互通短信频率高的联系人添加到邮件应用的第一邮箱地址集合中,避免了用户手动进行添加,有助于降低用户的操作复杂度、提高用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the method for adding email contacts in the embodiment of the present application, the electronic device can automatically add contacts with a high frequency of communicating with users to the first email address set of the email application, which avoids manual addition by the user and helps reduce users The complexity of the operation, improve the user’s operating efficiency, improve the intelligence of electronic equipment, and enhance the user experience.
结合第一方面,在第一方面的某些实现方式中,该第一应用为联系人应用,该第一联系人信息为该联系人应用中保存的该第一联系人是否为收藏的联系人,该预设条件为该第一联系人为收藏的联系人。With reference to the first aspect, in some implementations of the first aspect, the first application is a contact application, and the first contact information is whether the first contact saved in the contact application is a favorite contact , The preset condition is that the first contact is a favorite contact.
本申请实施例的添加邮件联系人的方法,电子设备可以自动将用户收藏的联系人添加到邮件应用的第一邮箱地址集合中,避免了用户手动进行添加,有助于降低用户的操作复杂度、提高用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the method for adding mail contacts in the embodiment of the present application, the electronic device can automatically add the user's favorite contacts to the first email address set of the mail application, which avoids the user from adding manually and helps to reduce the user's operation complexity , Improve the user's operating efficiency, improve the intelligence of electronic equipment, and enhance the user experience.
在一些可能的实现方式中,该第一应用为社交应用,该第一联系人信息为该社交应用中与该第一联系人互动的频率,该预设条件为该频率大于或者等于预设的频率阈值。In some possible implementations, the first application is a social application, the first contact information is the 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.
示例性的,该社交应用为Facebook、Twitter、QQ或者MSN等应用。Exemplarily, the social application is an application such as Facebook, Twitter, QQ, or MSN.
示例性的,该与第一联系人互动包括与第一联系人互通消息,或者,进行通话(例如,视频通话或者语音通话等)的频率。Exemplarily, the interaction with the first contact includes exchanging messages with the first contact, or the frequency of a call (for example, a video call or a voice call).
结合第一方面,在第一方面的某些实现方式中,该电子设备将该第一联系人对应的一个或者多个邮箱地址自动添加到邮件应用中的第一邮箱地址集合中之前,该方法还包括:该电子设备确定该一个或者多个邮箱地址不在该第一邮箱地址集合中。With reference to the first aspect, in some implementations of the first aspect, before the electronic device automatically adds one or more email addresses corresponding to the first contact to the first email address set in the mail application, the method It also includes: the electronic device determines that the one or more email addresses are not in the first email address set.
结合第一方面,在第一方面的某些实现方式中,该第一联系人对应多个邮箱地址,该将该第一联系人对应的一个或者多个邮箱地址自动添加到邮件应用中的第一邮箱地址集合中,包括:该电子设备从该多个邮箱地址中确定第一邮箱地址;该电子设备将该第一邮箱地址自动添加到邮件应用中第一邮箱地址集合中。With reference to the first aspect, in some implementations of the first aspect, the first contact corresponds to multiple email addresses, and one or more email addresses corresponding to the first contact are automatically added to the first email application. An email address set includes: the electronic device determines the first email address from the multiple email addresses; the electronic device automatically adds the first email address to the first email address set in the mail application.
在一些可能的实现方式中,该电子设备从该多个邮箱地址中确定第一邮箱地址,包括:该电子设备将多个邮箱地址中用户最近保存的邮箱地址确定为第一邮箱地址;或者,该电子设备将多个邮箱地址中用户保存的第一个邮箱地址确定为第一邮箱地址。In some possible implementation manners, the electronic device determining the first email address from the multiple email addresses includes: the electronic device determines the email address most recently saved by the user among the multiple email addresses as the first email address; or, The electronic device determines the first email address saved by the user among the multiple email addresses as the first email address.
结合第一方面,在第一方面的某些实现方式中,该第一邮箱地址集合为邮件应用中VIP邮件联系人。With reference to the first aspect, in some implementations of the first aspect, the first set of email addresses are VIP email contacts in the email application.
第二方面,提供了一种添加邮件联系人的方法,该方法包括:电子设备获取邮件应用中的第一邮箱地址,该第一邮箱地址不在邮件应用的VIP邮件联系人中;电子设备确定在第四时间段内,与该第一邮箱地址互通邮件的频率;在该频率大于或者等于第四频率阈值的情况下,电子设备将该第一邮箱地址自动加入VIP邮件联系人中。In a second aspect, a method for adding a mail contact is provided. The method includes: an electronic device obtains a first email address in a mail application, and the first email address is not in the VIP mail contact of the mail application; In the fourth time period, the frequency of email exchanges with the first email address; when the frequency is greater than or equal to the fourth frequency threshold, the electronic device automatically adds the first email address to the VIP email contact.
本申请实施例的添加邮件联系人的方法,电子设备可以自动将邮件应用中与用户互通邮件频率高的邮件联系人添加到邮件应用的VIP邮件联系人中,避免了用户手动进行添加,有助于降低用户的操作复杂度、提高用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the method for adding mail contacts in the embodiment of the present application, the electronic device can automatically add the mail contacts in the mail application that communicate with the user frequently to the VIP mail contacts of the mail application, which avoids the user from adding manually, which is helpful In order to reduce the user's operational complexity, improve the user's operational efficiency, improve the intelligence of electronic equipment, and enhance the user experience.
结合第二方面,在第二方面的某些实现方式中,将该第一邮箱地址自动加入VIP邮件联系人中之前,该方法还包括:确定该第一邮箱地址为非垃圾邮件的发件方地址。With reference to the second aspect, in some implementations of the second aspect, before the first email address is automatically added to the VIP mail contact, the method further includes: determining that the first email address is a sender of non-spam emails address.
本申请实施例中,在将第一邮箱地址自动添加到VIP邮件联系人之前,可以对第一邮箱地址进行过滤筛选,确定其是否为垃圾邮件的发件方地址,如果是则可以不将该第一邮 箱地址添加到VIP邮件联系人中,这样有助于避免将用户不希望添加的邮箱地址错误添加到VIP邮件联系人中。In the embodiment of this application, before the first email address is automatically added to the VIP email contact, the first email address can be filtered to determine whether it is the sender address of spam emails, and if it is, it can be omitted. The first email address is added to the VIP mail contact, which helps to avoid mistakenly adding the email address that the user does not want to add to the VIP mail contact.
结合第二方面,在第二方面的某些实现方式中,将该第一邮箱地址自动加入VIP邮件联系人中之前,该方法还包括:确定该第一邮箱地址不在VIP邮件联系人中。With reference to the second aspect, in some implementations of the second aspect, before the first email address is automatically added to the VIP mail contact, the method further includes: determining that the first email address is not in the VIP mail contact.
第三方面,本技术方案提供了一种添加邮件联系人的装置,该装置包含在电子设备中,该装置具有实现上述方面及上述方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。In a third aspect, the present technical solution provides a device for adding mail contacts, the device is included in an electronic device, and the device has the function of realizing the above aspects and the behavior of the electronic device in the possible implementation manners of the above aspects. The function can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions.
第四方面,本技术方案提供了一种电子设备,包括:一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述任一方面任一项可能的实现中的添加邮件联系人的方法。In a fourth aspect, the present technical solution provides an electronic device, including: one or more processors; a memory; multiple application programs; and one or more computer programs. Among them, one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instruction is executed by the electronic device, the electronic device is caused to execute the method for adding a mail contact in any one of the possible implementations of the foregoing aspects.
第五方面,本技术方案提供了一种电子设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述任一方面任一项可能的实现中的添加邮件联系人的方法。In a fifth aspect, the present technical solution provides an electronic device, including one or more processors and one or more memories. The one or more memories are coupled with one or more processors, and the one or more memories are used to store computer program codes. The computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes A method for adding a mail contact in a possible implementation of any one of the foregoing aspects.
第六方面,本技术方案提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的实现中的添加邮件联系人的方法。In a sixth aspect, the present technical solution provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute any one of the possible implementations of any one of the above aspects. method.
第七方面,本技术方案提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的设计中的添加邮件联系人的方法。In a seventh aspect, the present technical solution provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to execute the method of adding a mail contact in any one of the above-mentioned possible designs.
图1是本申请实施例提供的电子设备的结构示意图。Fig. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图2是本申请实施例提供的电子设备的软件结构框图。Fig. 2 is a software structure block diagram of an electronic device provided by an embodiment of the present application.
图3是本申请实施例提供的应用程序A和应用程序B之间进行数据访问的示意图。FIG. 3 is a schematic diagram of data access between application A and application B provided by an embodiment of the present application.
图4是本申请实施例提供的一组GUI。Figure 4 is a set of GUIs provided by an embodiment of the application.
图5是本申请实施例提供的另一组GUI。Figure 5 is another set of GUIs provided by an embodiment of the present application.
图6是本申请实施例提供的另一组GUI。Figure 6 is another set of GUIs provided by an embodiment of the present application.
图7是本申请实施例提供的另一组GUI。Fig. 7 is another set of GUI provided by an embodiment of the present application.
图8是本申请实施例提供的另一组GUI。Fig. 8 is another set of GUI provided by an embodiment of the present application.
图9是本申请实施例提供的添加邮件联系人的方法的示意性流程图。Fig. 9 is a schematic flowchart of a method for adding a mail contact provided by an embodiment of the present application.
图10是本申请实施例提供的电子设备的示意性框图。Fig. 10 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个、两个或两个以上。术语“和/或”,用于描述 关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also This includes expressions such as "one or more" unless the context clearly indicates to the contrary. It should also be understood that in the following embodiments of the present application, “at least one” and “one or more” refer to one, two or more than two. The term "and/or" is used to describe the association relationship of associated objects, which means that there can be three kinds of relationships; for example, A and/or B can mean: A alone exists, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural. The character "/" generally indicates that the associated objects are in an "or" relationship.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References described in this specification to "one embodiment" or "some embodiments", etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to" unless otherwise specifically emphasized.
以下介绍了本申请实施例提供的电子设备、用于这样的电子设备的用户界面、和用于使用这样的电子设备的实施例。在一些实施例中,电子设备可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是台式计算机。
The following introduces the electronic device provided by the embodiments of the present application, the user interface for such electronic device, and the embodiment for using such electronic device. In some embodiments, the electronic device may be a portable electronic device that also contains other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, and a wearable electronic device with wireless communication function (such as a smart watch) Wait. Exemplary embodiments of portable electronic devices include but are not limited to carrying Or portable electronic devices with other operating systems. The aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) and the like. It should also be understood that, in some other embodiments, the above electronic device may not be a portable electronic device, but a desktop computer.
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Exemplarily, 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, and an antenna 2. , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Among them, the controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避 免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through 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 realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on. GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并 不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic illustration, and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。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 supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed 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 an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号, 对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. 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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves through the antenna 2 and radiate it.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专 家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。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 can play or record videos in a variety of encoding formats, for example: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information and can continuously learn by itself. The NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to 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, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备 100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers and so on.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F, used to measure distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。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 uses a photodiode to detect infrared reflected light from nearby objects. 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 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备 100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can 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 call and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes a layered Android system as an example to illustrate the software structure of the electronic device 100.
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。FIG. 2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer. The application layer can include a series of application packages.
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短消息等应用程序。As shown in Figure 2, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括内容提供器,内容访问器,窗口管理器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer can include content provider, content accessor, window manager, view system, phone manager, resource manager, notification manager, etc.
内容提供器(content provider)用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿、短消息等。The content provider is used to store and obtain data, and make these data accessible to applications. The data may include videos, images, audios, calls made and received, browsing history and bookmarks, phone book, short messages, etc.
内容访问器(content resolver):应用程序A可以通过应用程序A的content resolver来访问应用程序B的content provider所提供的数据。Content Resolver: Application A can access the data provided by the content provider of Application B through the content resolver of Application A.
为了在应用程序之间交互数据,Android提供了content provider,它是不同应用程序之间进行数据交互的标准API。当一个应用程序需要把自己的数据暴露给其他应用程序使用时,该应用程序可以通过content provider来实现。In order to exchange data between applications, Android provides a content provider, which is a standard API for data exchange between different applications. When an application needs to expose its own data to other applications, the application can be implemented through content providers.
而其他应用程序需要使用这些数据时,不管提供数据的应用程序是否启动,可以通过内容访问器(content resolver)来操作content provider暴露的数据。操作数据可以包括查询数据(query())等等。When other applications need to use these data, regardless of whether the application providing the data is started or not, the data exposed by the content provider can be manipulated through the content resolver. The operation data may include query data (query()) and so on.
应理解,本申请实施例中,操作数据可以包括查询数据,例如应用程序A可以通过应用程序A的content resolver中的query接口来访问应用程序B的content provider所提供的数据。操作数据还可以包括其他,例如,增加数据(insert())、删减数据(delete())、更新数据(updata())等。It should be understood that, in the embodiment of the present application, the operation data may include query data. For example, the application A may access the data provided by the content provider of the application B through the query interface in the content resolver of the application A. The operation data can also include others, such as adding data (insert()), deleting data (delete()), updating data (updata()), and so on.
示例性的,应用程序A可以通过应用程序A的content resolver中insert接口向应用程序B的content provider增加数据。Exemplarily, application A may add data to the content provider of application B through the insert interface in the content resolver of application A.
示例性的,应用程序A可以通过应用程序A的content resolver中delete接口从应用程序B的content provider删除数据。Exemplarily, application A may delete data from the content provider of application B through the delete interface in the content resolver of application A.
示例性的,应用程序A可以通过应用程序A的content resolver中updata接口更新应用程序B的content provider中的数据。Exemplarily, application A may update the data in the content provider of application B through the updata interface in the content resolver of application A.
content provider所提供的数据可以来自于数据库,也可以来自于文件,还可以是通过网络上的数据(例如,从云侧获取到的数据,或者,从服务器获取到的数据)。The data provided by the content provider can come from a database, a file, or data on the Internet (for example, data obtained from the cloud side, or data obtained from a server).
示例性的,联系人数据提供器所提供的数据可以来自于联系人数据库,该联系人数据库可以为应用程序层中的联系人提供器(contact provider);或者,联系人数据提供器所提供的数据也可以来自于电子设备本地保存的某一个文件中;或者,联系人数据提供器所提供的数据还可以来自于云侧。Exemplarily, the data provided by the contact data provider may come from a contact database, which may be a contact provider in the application layer; or, the data provided by the contact data provider The data can also come from a file stored locally on the electronic device; or, the data provided by the contact data provider can also come from the cloud side.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text and controls that display pictures. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
图3示出了应用程序A和应用程序B之间进行数据访问的示意图。如图3所示,应用程序A(App A)通过应用程序A的content resolver来对应用程序B(App B)的content provider进行数据访问。Figure 3 shows a schematic diagram of data access between application A and application B. As shown in Figure 3, application A (App A) uses the content resolver of application A to access the content provider of application B (App B).
在进行数据访问时,应用程序A的content resolver需要用到统一资源标识符(uniform resource identifier,URI),URI是应用程序A的content resolver来对应用程序B的content provider进行数据交互的标识。When accessing data, the content resolver of the application A needs to use a uniform resource identifier (URI), and the URI is the identifier of the content resolver of the application A to perform data interaction with the content provider of the application B.
示例性的,URI可以分为四部分:Exemplarily, the URI can be divided into four parts:
①主题名(schema):content provider的URI前缀。示例性的,content provider的URI前缀可以由Android所规定为content://;①Scheme: The URI prefix of the content provider. Exemplarily, the URI prefix of the content provider can be specified by Android as content: //;
②授权信息(authority):由于唯一标识这个content provider,content resolver可以根据这个标识来找到对应的content provider。② Authorization information (authority): Since the content provider is uniquely identified, the content resolver can find the corresponding content provider based on this identifier.
③路径(path):URI下的某一个项目(item),用于判断请求的路径(哪些数据被访问)。这里通俗的将就是数据库中表的名字。③Path: An item under the URI, used to determine the requested path (which data is accessed). Popular here will be the name of the table in the database.
④被请求的特定数据的标识(ID):如果URI中包含表示被请求的特定数据的标识,则content provider可以向content resolver返回该标识对应的特定数据;如果没有该被请求的特定数据的标识,则表示需要返回全部数据。④Identification (ID) of the 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 there is no identifier of the requested specific data , It means that all data needs to be returned.
示例性的,要操作联系人数据库的联系人列表中ID为10的记录,可以构建这样的路径:content://contact provider/contact/10。Exemplarily, to manipulate the record with ID 10 in the contact list of the contact database, a path like this can be constructed: content://contactprovider/contact/10.
示例性的,content resolver要操作联系人数据库的联系人列表中ID为10记录姓名 (name)字段,可以构建这样的路径:content://contact provider/contact/10/name。Exemplarily, the content resolver wants to operate the name field of the name (name) record with ID 10 in the contact list of the contact database, and this path can be constructed: content://contactprovider/contact/10/name.
示例性的,content resolver要操作联系人数据库的联系人列表中的所有的收藏联系人记录,可以构建这样的路径:content://contact provider/vip_contact。Exemplarily, the content resolver wants to operate all the favorite contact records in the contact list of the contact database, and can construct such a path: content://contactprovider/vip_contact.
本申请实施例中,收藏联系人可以是用户手动或者电子设备根据预设规则自动添加到联系人收藏夹中的联系人。In the embodiment of the present application, the favorite contact may be a contact manually added by the user or the electronic device according to a preset rule to the contact favorite.
示例性的,content resolver要操作联系人数据库的联系人列表中的所有的联系人的电子邮箱地址,可以构建这样的路径:content://contact provider/contact/email_adress。Exemplarily, the content resolver wants to operate the email addresses of all contacts in the contact list of the contact database, and can construct such a path: content://contactprovider/contact/email_adress.
示例性的,content resolver要操作联系人数据库的通话记录列表中所有的通话记录,可以构建这样的路径:content://contact provider/calls。Exemplarily, the content resolver needs to operate all the call records in the call record list of the contact database, and can construct such a path: content://contactprovider/calls.
示例性的,content resolver要操作短消息数据库的短消息列表中所有的短消息记录,可以构建这样的路径:content://message_log/messages。Exemplarily, the content resolver needs to operate all the short message records in the short message list of the short message database, and can construct such a path: content://message_log/messages.
应理解,URI中被请求的特定数据的标识为可选地。It should be understood that the identification of the specific data requested in the URI is optional.
还应理解,content resolver要操作的数据除了来自数据库之外,也可以是来自文件等其他存储方式。示例性的,要操作可扩展标记语言(extensible markup language,XML)文件中联系人节点下的姓名节点,可以构建这样的路径:content://contact provide/contact/name。It should also be understood that the data to be operated on by the content resolver may be from other storage methods such as files in addition to the database. Exemplarily, to operate the name node under the contact node in an extensible markup language (XML) file, a path like this can be constructed: content://contactprovide/contact/name.
以上介绍了应用程序A的content resolver如何对应用程序B(App B)的content provider进行数据访问,下面介绍应用程序B(App B)的content provider中的数据库中数据。以联系人应用中的数据库(例如,联系人提供器(contact provider))为例进行说明。The above describes how the content resolver of application A accesses the content provider of application B (App B), and the following describes the data in the database in the content provider of application B (App B). Take a database in a contact application (for example, a contact provider) as an example.
示例性的,表1示出了联系人应用数据库中联系人及其对应的信息列表。Exemplarily, Table 1 shows a list of contacts and their corresponding information in the contact application database.
表1 联系人及其对应的信息列表Table 1 List of contacts and their corresponding information
IDID | 联系人Contact person | 手机号码1Phone number 1 | 手机号码2Phone number 2 | 住址address | 邮箱地址email address |
11 | 用户AUser A | 187××××187×××× | 151××××151×××× | 地址1Address 1 | 517310229@qq.com517310229@qq.com |
22 | 用户BUser B | 182××××182×××× | NULLNULL | 地址2Address 2 | 187××××@163.com187××××@163.com |
33 | 用户CUser C | 186××××186×××× | 187××××187×××× | NULLNULL | NULLNULL |
44 | 用户DUser D | 156××××156×××× | NULLNULL | NULLNULL | NULLNULL |
55 | 用户EUser E | 177××××177×××× | NULLNULL | NULLNULL | NULLNULL |
66 | 用户FUser F | 152××××152×××× | NULLNULL | NULLNULL | NULLNULL |
…… | …… | …… | …… | …… | …… |
应理解,表1仅仅是示意性的,每个联系人对应的信息可以包括更少或者更多的信息。例如,每个联系人对应的信息还可以包括工作地址信息、昵称信息、生日信息等等。It should be understood that Table 1 is only illustrative, and 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 so on.
示例性的,当某个应用程序需要查询联系人应用数据库中的联系人及其对应的信息时,该应用程序对应的content resolver可以调用query接口向联系人应用对应的content provider的query接口发送对应的URI,该URI可以为content://contact provider/contact。联系人应用的content provider的query接口在接收到该URI后,可以确定该应用程序需要查询联系人应用的数据库中的联系人及其对应的信息,在从数据库中找到该信息后,联系人应用的content provider的query接口可以向应用程序对应的content resolver的query接口返回查询到的信息。Exemplarily, when an application needs to query the contact and its corresponding information in the contact application database, the content resolver corresponding to the application can call the query interface to send the corresponding query interface to the query interface of the content provider corresponding to the contact application. The URI, which can be content://contactprovider/contact. After the query interface of the content provider of the contact application receives the URI, it can determine that the application needs to query the contact and its corresponding information in the database of the contact application. After finding the information in the database, the contact application The query interface of the content provider can return the queried information to the query interface of the content resolver corresponding to the application.
示例性的,当某个应用程序只需要查询联系人及其对应的信息中联系人和联系人对应的邮箱地址信息时,该应用程序对应的content resolver可以调用query接口向联系人应用对应的content provider的query接口发送对应的URI,该URI可以为content://contact provider/contact/email_address。联系人应用的content provider的query接口在接收到该URI后,可以确定该应用程序需要查询联系人和联系人对应的邮箱地址信息,在从数据库中找到该信息后,联系人应用的content provider的query接口可以向应用程序对应的content resolver的query接口返回查询到的信息。Exemplarily, when an application only needs to query the contact and the email address information corresponding to the contact in the contact and its corresponding information, the content resolver corresponding to the application can call the query interface to apply the corresponding content to the contact The query interface of the provider sends the corresponding URI, which can be content://contactprovider/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 needs to query the contact and the email address information corresponding to the contact. After finding the information in the database, the content provider of the contact application The query interface can return the queried information to the query interface of the content resolver corresponding to the application.
示例性的,联系人应用的content provider的query接口可以向应用程序对应的content resolver的query接口返回查询到的信息可以如表2所示。Exemplarily, 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, as shown in Table 2.
表2 联系人应用的content provider的query接口返回的信息Table 2 Information returned by the query interface of the content provider of the contact application
IDID | 联系人Contact person | 邮箱地址email address |
11 | 用户AUser A | 517310229@qq.com517310229@qq.com |
22 | 用户BUser B | 187××××@163.com187××××@163.com |
33 | 用户CUser C | NULLNULL |
44 | 用户DUser D | NULLNULL |
55 | 用户EUser E | NULLNULL |
66 | 用户FUser F | NULLNULL |
…… | …… | …… |
示例性的,表3示出了联系人应用数据库中联系人的通话记录的信息列表。Exemplarily, Table 3 shows an information list of call records of contacts in the contact application database.
表3 联系人的通话记录的信息列表Table 3 Information list of contact's call records
IDID | 联系人Contact person | 总通话次数Total number of calls | 本月通话次数Number of calls this month | 最后一次通话时间Last call time |
11 | 用户AUser A | 100100 | 2020 | 2019/04/15 09:45:322019/04/15 09:45:32 |
22 | 用户BUser B | 8585 | 1515 | 2019/04/14 18:32:212019/04/14 18:32:21 |
33 | 用户CUser C | 3030 | 00 | 2019/03/20 15:14:582019/03/20 15:14:58 |
44 | 用户DUser D | 6565 | 55 | 2019/04/08 13:17:062019/04/08 13:17:06 |
55 | 用户EUser E | 7777 | 22 | 2019/04/06 08:45:362019/04/06 08:45:36 |
66 | 用户FUser F | 3232 | 11 | 2019/04/10 12:52:202019/04/10 12:52:20 |
…… | …… | …… | …… | …… |
应理解,表3仅仅是示意性的,通话记录的信息列表中可以包括更少或者更多的信息。例如,每个联系人对应的通话记录中还可以包括最早一次的通话时间、最近一个星期的通话次数等等。It should be understood that Table 3 is only illustrative, and the information list of the call record may include less or more information. For example, the call record corresponding to each contact may also include the earliest call time, the number of calls in the most recent week, and so on.
示例性的,当某个应用程序需要查询联系人应用中的通话记录时,该应用程序对应的content resolver可以调用query接口向联系人应用对应的content provider的query接口发送对应的URI,该URI可以为content://contact provider/calls。联系人应用的content provider的query接口在接收到该URI后,可以确定该应用程序需要查询联系人应用的数据库中的通话记录的信息,在从数据库中找到该信息后,联系人应用的content provider的query接口可以向应用程序对应的content resolver的query接口返回查询到的信息。Exemplarily, when an application needs to query the call records in the contact application, the content resolver corresponding to the application can call the query interface to send the corresponding URI to the query interface of the content provider corresponding to the contact application. The URI can be It is content://contactprovider/calls. After the query interface of the content provider of the contact application receives the URI, it can be determined that the application needs to query the call record information in the database of the contact application. After the information is found in the database, the content provider of the contact application The query interface can return the queried information to the query interface of the content resolver corresponding to the application.
示例性的,当某个应用程序需要查询通话记录中的总通话次数时,该应用程序对应的content resolver可以调用query接口向联系人应用对应的content provider的query接口发 送对应的URI,该URI可以为content://contact provider/calls/total number of calls。联系人应用的content provider的query接口在接收到该URI后,可以确定该应用程序需要查询通话记录中总通话次数的信息,在从数据库中找到该信息后,联系人应用的content provider的query接口可以向应用程序对应的content resolver的query接口返回查询到的信息。Exemplarily, when an application needs to query the total number of calls in the call record, the content resolver corresponding to the application can call the query interface to send the corresponding URI to the query interface of the content provider corresponding to the contact application. The URI can be It is content://contactprovider/calls/totalnumberofcalls. After the query interface of the content provider of the contact application receives the URI, it can be determined that the application needs to query the information of the total number of calls in the call log. After the information is found in the database, the query interface of the content provider of the contact application The queried information can be returned to the query interface of the content resolver corresponding to the application.
示例性的,联系人应用的content provider的query接口可以向应用程序对应的content resolver的query接口返回查询到的信息可以如表4所示。Exemplarily, 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, as shown in Table 4.
表4 联系人应用的content provider的query接口返回的信息Table 4 Information returned by the query interface of the content provider of the contact application
IDID | 联系人Contact person | 总通话次数Total number of calls |
11 | 用户AUser A | 100100 |
22 | 用户BUser B | 8585 |
33 | 用户CUser C | 3030 |
44 | 用户DUser D | 6565 |
55 | 用户EUser E | 7777 |
66 | 用户FUser F | 3232 |
…… | …… | …… |
示例性的,表5示出了联系人应用数据库中收藏联系人的信息列表。Exemplarily, Table 5 shows a list of favorite contacts in the contact application database.
表5 收藏联系人的信息列表Table 5 Information list of favorite contacts
IDID | 联系人Contact person | 是否为收藏联系人Whether it is a favorite contact |
11 | 用户AUser A | 是Yes |
22 | 用户BUser B | 是Yes |
33 | 用户CUser C | 否no |
44 | 用户DUser D | 否no |
55 | 用户EUser E | 否no |
66 | 用户FUser F | 否no |
…… | …… | …… |
应理解,上述表1、表3和表5可以分为多张表存储在联系人应用的数据库中,也可以是其中任意两张表合并在一张表中,还可以是表1、表3和表5分别独立存储在联系人应用的数据库中。It should be understood that the above Table 1, Table 3, and Table 5 can be divided into multiple tables and stored in the database of the contact application, or any two tables can be combined into one table, or Table 1, Table 3 and Table 5 are independently stored in the database of the contact application.
示例性的,表6示出了短消息应用数据库中短消息列表信息。Exemplarily, Table 6 shows the short message list information in the short message application database.
表6 短消息列表信息Table 6 Short message list information
应理解,表6仅仅是示意性的,短信息列表中可以包括更少或者更多的信息。例如,每个联系人对应的短消息记录中还可以包括最早一次的接收/发送时间、最近一个星期的互发短信次数等等。It should be understood that Table 6 is only illustrative, and the short message list may include less or more information. For example, the short message record corresponding to each contact may also include the earliest receiving/sending time, the number of exchanges of short messages in the last week, and so on.
示例性的,当某个应用程序需要查询短消息应用中的短消息列表时,该应用程序对应的content resolver可以调用query接口向短消息应用对应的content provider的query接口发送对应的URI,该URI可以为content://message_log/messages。短消息应用的content provider的query接口在接收到该URI后,可以确定该应用程序需要查询短消息应用数据库中的短消息列表信息,在从数据库中找到该信息后,联系人应用的content provider的query接口可以向应用程序对应的content resolver的query接口返回查询到的信息。Exemplarily, when an application needs to query the short message list in the short message application, the content resolver corresponding to the application can call the query interface to send the corresponding URI to the query interface of the content provider corresponding to the short message application. The URI Can be content://message_log/messages. After the query interface of the content provider of the short message application receives the URI, it can be determined that the application needs to query the short message list information in the short message application database. After the information is found in the database, the content provider of the contact application The query interface can return the queried information to the query interface of the content resolver corresponding to the application.
示例性的,当某个应用程序需要查询通话记录中的短消息列表中总互发短信次数时,该应用程序对应的content resolver可以调用query接口向联系人应用对应的content provider的query接口发送对应的URI,该URI可以为content://message_log/messages/total number of messages。短信应用的content provider的query接口在接收到该URI后,可以确定该应用程序需要查询通话记录中总互发短信次数的信息,在从数据库中找到该信息后,联系人应用的content provider的query接口可以向应用程序对应的content resolver的query接口返回查询到的信息。Exemplarily, when an application needs to query the total number of exchanges of short messages in the short message list in the call record, the content resolver corresponding to the application can call the query interface to send the corresponding query interface to the corresponding content provider of the contact application The URI, which can be content://message_log/messages/total number of messages. After the query interface of the content provider of the SMS application receives the URI, it can be determined that the application needs to query the information of the total number of exchanges of short messages in the call log. After the information is found in the database, the query of the content provider of the contact application The interface can return the queried information to the query interface of the content resolver corresponding to the application.
示例性的,联系人应用的content provider的query接口可以向应用程序对应的content resolver的query接口返回查询到的信息可以如表7所示。Exemplarily, 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, as shown in Table 7.
表7 短消息应用的content provider的query接口返回的信息Table 7 Information returned by the query interface of the content provider of the short message application
IDID | 联系人Contact person | 总互发短信次数Total number of mutual text messages |
11 | 用户AUser A | 5555 |
22 | 用户BUser B | 3030 |
33 | 用户CUser C | 1010 |
44 | 用户DUser D | 33 |
55 | 用户EUser E | 22 |
66 | 用户FUser F | 55 |
…… | …… | …… |
为了便于理解,本申请以下实施例将以具有图1和图2所示结构的手机为例,结合附图对本申请实施例提供的添加邮件联系人的方法进行具体阐述。For ease of understanding, the following embodiments of the present application will take the mobile phone having the structure shown in FIG. 1 and FIG. 2 as an example, and specifically describe the method for adding mail contacts provided by the embodiments of the present application in conjunction with the accompanying drawings.
图4示出了手机的一组图形用户界面(graphical user interface,GUI)。Figure 4 shows a set of graphical user interfaces (GUI) of the mobile phone.
参见图4中的(a)所示,该GUI为手机的桌面401。当手机检测到用户点击桌面401上的邮件应用(application,APP)的图标402的操作后,可以启动邮件应用,显示如图4中的(b)所示的GUI,该GUI可以称为邮件应用界面。该邮件应用界面上包括通讯录、收件箱、发件箱、草稿箱、贵宾(very important person,VIP)邮件联系人等等,其中,通讯录中包括用户记录的收件人的姓名、邮箱地址和手机号码等信息。参见图4中的(b)所示,当手机检测到用户点击控件403的操作后,可以显示如图4中的(c)所示的GUI。As shown in (a) in FIG. 4, the GUI is the desktop 401 of the mobile phone. When the mobile phone detects that the user clicks the icon 402 of the mail application (application, APP) on the desktop 401, it can start the mail application and display the GUI shown in (b) in Figure 4, which can be called a mail application interface. The mail application interface includes address book, inbox, outbox, draft box, VIP (very important person, VIP) mail contacts, etc. The address book includes the recipient’s name and email address recorded by the user Information such as address and mobile phone number. Referring to (b) in FIG. 4, when the mobile phone detects that the user has clicked on the control 403, it can display the GUI as shown in (c) in FIG.
VIP邮件联系人指特别重要的邮件联系人,对于来自VIP邮件联系人的邮件,系统可以对其进行特殊标记以提醒用户,例如在其姓名旁边标记星形符号
或者,为每个VIP邮件联系人添加一个文件夹,以方便用户查看该VIP邮件联系人的所有邮件。
VIP mail contacts refer to particularly important mail contacts. For mails from VIP mail contacts, the system can mark them to remind users, for example, mark a star next to their name Or, add a folder for each VIP mail contact, so that the user can view all the mails of the VIP mail contact.
参见图4中的(c)所示的GUI,该GUI为邮件应用的通讯录界面,邮件应用的通讯录中包括10个邮件联系人。当手机检测到用户点击邮件联系人对应的控件404的操作后,手机可以将对应的邮件联系人添加到VIP邮件联系人中。Refer to the GUI shown in (c) in FIG. 4, which is the address book interface of the 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 can add the corresponding mail contact to the VIP mail contact.
参见图4中的(d)所示的GUI,该GUI为邮件应用的VIP邮件联系人界面,当手机检测到用户点击邮件联系人中的Apple、Bob和Charles对应的控件404后,手机可以将Apple、Bob和Charles添加到VIP邮件联系人中。用户可以在VIP邮件联系人中点击相应的Apple,从而可以查看到与Apple交互的邮件信息。Refer to the GUI shown in (d) in Figure 4, which is the VIP mail contact interface of the mail application. When the mobile phone detects that the user clicks the control 404 corresponding to Apple, Bob, and Charles in the mail contact, the mobile phone can Apple, Bob and Charles are added to VIP mail contacts. The user can click on the corresponding Apple in the VIP mail contact to view the mail information interacting with Apple.
参见图4中的(e)所示的GUI,该GUI为邮件应用的设置界面,当手机检测到用户点击设置控件405的操作后,可以显示如图4中的(e)所示的GUI。该GUI包括账户设置、邮件文字大小设置、是否总是密送给自己的设置以及是否自动添加VIP联系人的设置等等。当手机检测到用户打开自动添加VIP联系人的设置的控件406的操作后,可以显示如图4中的(f)所示的GUI。Refer to the GUI shown in (e) of FIG. 4, which is the setting interface of the mail application. When the mobile phone detects that the user has clicked the setting control 405, the GUI shown in (e) of FIG. 4 can be displayed. The GUI includes account settings, email text size settings, whether to always Bcc to yourself, and whether to automatically add VIP contacts, etc. When the mobile phone detects that the user has opened the control 406 for automatically adding VIP contacts, it may display the GUI as shown in (f) in FIG. 4.
参见图4中的(f)所示的GUI,该GUI为邮件应用的另一界面,手机可以显示窗口407,该窗口407中包括对自动添加VIP联系人的功能介绍。如图4中的(f),该窗口407中包括文字提醒,例如“开启该功能后,可以将与您通话频率高的联系人自动添加到VIP邮件联系人中”。Refer to the GUI shown in (f) in FIG. 4, which is another interface of the mail application. The mobile phone can display a window 407, which includes an introduction to the function of automatically adding VIP contacts. As shown in (f) in Figure 4, the window 407 includes text reminders, for example, "After enabling this function, you can automatically add contacts with high frequency of calls to VIP mail contacts."
参见图4中的(g)所示的GUI,该GUI为电话应用的界面,从该电话应用界面可以看出,用户最近通话频繁的联系人包括Frank和Joe。Referring to the GUI shown in (g) in FIG. 4, the GUI is the interface of the phone application. It can be seen from the interface of the phone application that the user's recent frequent contacts include Frank and Joe.
参见图4中的(h)所示的GUI,该GUI为邮件应用的VIP邮件联系人的另一界面,该界面中除了之前有的Apple、Bob和Charles以外,自动添加了Frank和Joe,其中,Frank和Joe均为联系人应用中与用户通话频率最高的两位用户。Refer to the GUI shown in (h) in Figure 4, which is another interface of the VIP mail contacts of the mail application. In addition to the previous Apple, Bob and Charles, Frank and Joe are automatically added to this interface. , Frank and Joe are the two most frequent users in the contacts application.
一个实施例中,与用户通话频率高的联系人也可以理解为在第一时间段内,与用户通话的频率大于或者等于第一频率阈值的联系人。In an embodiment, a contact with a high frequency of talking with the user can also be understood as a contact whose frequency of talking with the user is greater than or equal to the first frequency threshold in the first time period.
一个实施例中,手机可以在确定在第一时间段内,与用户通话的频率大于或者等于第一频率阈值的联系人是否为骚扰电话、中介电话等等,若判断出来是,则手机可以不将这些联系人添加到VIP邮件联系人列表中。In one embodiment, the mobile phone can determine whether the contact with the user whose frequency of talking with the user is greater than or equal to the first frequency threshold in the first time period is a harassing call, an intermediary call, etc. Add these contacts to the VIP mail contact list.
本申请实施例的添加邮件联系人的方法,手机可以自动将通话频率高的联系人添加到邮件应用的VIP邮件联系人中,避免了用户手动进行添加,有助于降低用户的操作复杂度、提供用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the method for adding mail contacts in the embodiments of the present application, the mobile phone can automatically add contacts with a high frequency of calls to the VIP mail contacts of the mail application, avoiding manual addition by the user, and helping to reduce the complexity of the user's operation. Provide users with operating efficiency, improve the intelligence of electronic devices, and enhance user experience.
一个实施例中,手机可以将具有邮箱地址且与用户通话频率高的联系人自动添加到用户的VIP邮件联系人中,即手机自动添加VIP邮件联系人时需要判断该联系人是否具有邮箱地址且是否是与用户通话频率高的联系人。In one embodiment, the mobile phone can automatically add a contact with an email address and a frequent call with the user to the user's VIP mail contact, that is, when the mobile phone automatically adds a VIP mail contact, it needs to determine whether the contact has an email address and Whether it is a contact with a high frequency of calls with the user.
一个实施例中,手机可以自动将联系人应用中用户收藏的联系人的邮箱地址自动添加到邮件应用的VIP邮件联系人中。In one embodiment, the mobile phone can automatically add the email addresses of the contacts favorited by the user in the contacts application to the VIP mail contacts of the mail application.
一个实施例中,手机也可以将在第一时间段内,与用户通话的频率大于或者等于第一频率阈值的联系人的邮箱地址自动添加到邮件应用的其他类型的邮件联系人中,示例性的,将这些邮箱地址自动添加到邮件应用的通讯录中,该通讯录可以如图4中的(c)所示,通讯录中可以保存用户所有的邮件联系人。In an embodiment, the mobile phone may also automatically add the email addresses of contacts whose call frequency with the user during the first time period is greater than or equal to the first frequency threshold to other types of mail contacts in the mail application. Yes, these email addresses are automatically added to the address book of the mail application. The address book can be as shown in (c) in Figure 4, and all the mail contacts of the user can be saved in the address book.
应理解,本申请各实施例中所涉及的“联系人”和“邮件联系人”为两个不同的概念,其中,联系人是非邮件应用中的联系人,其可以指电话或者联系人应用中保存的联系人,用 户可以在电话或者联系人应用中查找对应的联系人,从而与联系人进行通话、发送短消息等操作;或者,联系人还可以指某个社交应用(例如,Facebook、Twitter、微信或者QQ)中的联系人,用户可以在社交应用中查找对应的联系人,从而向联系人发送消息、发起视频通话或者语音通话等等操作。而邮件联系人指邮件应用中的联系人,用户可以在邮件应用中查找对应的邮件联系人,从而查找与该联系人互通的邮件、向该联系人发送邮件等操作。It should be understood that the "contact" and "mail contact" involved in the embodiments of the present application are two different concepts, where a contact is a contact in a non-mail application, which can refer to a phone or a contact application For saved contacts, the user can search for the corresponding contact in the phone or contact application, and then perform operations such as calling and sending short messages with the contact; or, the contact can also refer to a social application (for example, Facebook, Twitter) , WeChat or QQ), the user can find the corresponding contact in the social application to send a message to the contact, initiate a video call or voice call, etc. The mail contact refers to the contact in the mail application, and the user can search for the corresponding mail contact in the mail application, so as to find the mails that communicate with the contact, and send mails to the contact.
图5示出了手机的另一组GUI。Figure 5 shows another set of GUIs of the mobile phone.
当手机检测到用户开启自动添加VIP邮件联系人的操作后,可以显示如图5中的(a)所示的GUI。When the mobile phone detects that the user has started the operation of automatically adding VIP mail contacts, it can display the GUI as shown in (a) in Figure 5.
参见图5中的(a)所示的GUI,手机可以显示窗口501,该窗口501中包括对自动添加VIP联系人的功能介绍。如图5中的(a),该窗口501中包括文字提醒“开启该功能后,可以将您收藏的联系人自动添加到VIP邮件联系人中”。Referring to the GUI shown in (a) in FIG. 5, the mobile phone can display a window 501, which includes an introduction to the function of automatically adding VIP contacts. As shown in (a) in Figure 5, the window 501 includes a text reminder "After turning on this function, your favorite contacts can be automatically added to VIP mail contacts".
参见图5中的(b)所示的GUI,该GUI为手机的联系人应用(通讯录应用)中收藏的联系人界面。如图5中的(b)所示,Frank和Joe为用户收藏的联系人。Refer to the GUI shown in (b) in FIG. 5, which is a favorite contact interface in the contact application (address book application) of the mobile phone. As shown in (b) in Figure 5, Frank and Joe are the favorite contacts of the user.
收藏的联系人指用户进行了收藏操作的通话联系人,用户可以将联系人中的一个或多个收藏到收藏的联系人中以便快速查看。Favorited contacts refer to call contacts that the user has performed a favorite operation, and the user can favorite one or more of the contacts to favorite contacts for quick viewing.
邮件应用的VIP邮件联系人中除了之前有的邮件Apple、Bob和Charles以外,自动添加了Frank和Joe,其中,Frank和Joe均为联系人应用中具有邮箱地址且为用户收藏的联系人。In addition to the previous emails Apple, Bob, and Charles, the VIP mail contacts of the mail application automatically add Frank and Joe. Among them, Frank and Joe are all contacts in the contacts application that have email addresses and are user favorites.
本申请实施例的添加邮件联系人的方法,手机可以自动将用户收藏的联系人添加到邮件应用的VIP邮件联系人中,避免了用户手动进行添加,有助于降低用户的操作复杂度、提高用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the method for adding mail contacts in the embodiment of the present application, the mobile phone can automatically add the user's favorite contacts to the VIP mail contacts of the mail application, avoiding manual addition by the user, and helping to reduce the user's operational complexity and improve The user's operating efficiency improves the intelligence of electronic equipment and enhances the user experience.
一个实施例中,手机可以将联系人应用中具有邮箱地址且为用户收藏的联系人添加到邮件应用的VIP邮件联系人中,即手机自动添加VIP邮件联系人时需要判断该联系人是否具有邮箱地址且是否为用户收藏的联系人。In one embodiment, the mobile phone can add a contact in the contact application that has an email address and is a user's favorite to the VIP mail contact of the mail application, that is, when the mobile phone automatically adds a VIP mail contact, it needs to determine whether the contact has an email address. Address and whether it is a user's favorite contact.
一个实施例中,手机可以自动将短消息应用中在预设时间段内与用户互通短消信的频率大于或者等于预设频率阈值的联系人的邮箱地址自动添加到邮件应用的VIP邮件联系人中。In one embodiment, the mobile phone can automatically add the email addresses of the contacts whose frequency of communicating with the user in the short message application within the preset time period is greater than or equal to the preset frequency threshold to the VIP mail contacts of the mail application in.
一个实施例中,手机也可以将,在预设时间段内与用户互通短消信的频率大于或者等于预设频率阈值的联系人的邮箱地址,自动添加到邮件应用的其他类型的邮件联系人中,示例性的,将这些邮箱地址自动添加到邮件应用的通讯录中。In one embodiment, the mobile phone can also automatically add the email addresses of contacts whose short message frequency is greater than or equal to the preset frequency threshold within a preset time period to other types of email contacts in the mail application In, for example, these email addresses are automatically added to the address book of the mail application.
图6示出了手机的另一组GUI。Figure 6 shows another set of GUIs of the mobile phone.
当手机检测到用户开启自动添加VIP邮件联系人的操作后,可以显示如图6中的(a)所示的GUI。When the mobile phone detects that the user has started the operation of automatically adding VIP mail contacts, it can display the GUI as shown in (a) in Figure 6.
参见图6中的(a)所示的GUI,该GUI为邮件应用的另一界面。手机可以显示窗口601,该窗口601中包括对自动添加VIP联系人的功能介绍。如图6中的(a),该窗口601中包括文字提醒“开启该功能后,可以将与您经常互通短消息的联系人自动添加到VIP邮件联系人中”。Refer to the GUI shown in (a) in FIG. 6, which is another interface of the mail application. The mobile phone can display a window 601 that includes an introduction to the function of automatically adding VIP contacts. As shown in (a) in Figure 6, the window 601 includes a text reminder that "after turning on this function, you can automatically add contacts who exchange short messages with you to VIP mail contacts".
本申请实施例中,与用户互通短消息的联系人可以指用户接收到其发送的短消息的联系人,和/或,用户向其发送短消息的联系人。In the embodiment of the present application, the contact person who exchanges short messages with the user may refer to the contact person who receives the short message sent by the user, and/or the contact person who sends the short message to the user.
参见图6中的(b)所示的GUI,该GUI为短消息应用的界面。Refer to the GUI shown in (b) in FIG. 6, which is an interface of a short message application.
邮件应用的VIP邮件联系人中除了之前有的Apple、Bob和Charles以外,自动添加了Frank和Joe,其中,Frank和Joe均为在联系人应用中具有邮箱地址且在短消息应用中与用户互通短消息频率高的联系人。In addition to the previous Apple, Bob and Charles, the VIP mail contacts of the mail application automatically add Frank and Joe. Among them, Frank and Joe have email addresses in the contacts application and communicate with users in the short message application. Contacts with high frequency of short messages.
应理解,本申请实施例中,电话或者联系人应用和短消息应用之间的数据是互通的,即手机的电话或者联系人应用中保存的联系人在给用户发送短消息时,手机的短消息应用中可以显示短消息发送方的姓名和手机号码。It should be understood that, in the embodiments of the present application, the data between the phone or contact application and the short message application is intercommunication, that is, when the phone or the contact saved in the contact application sends a short message to the user, the short message of the phone is The name and mobile phone number of the sender of the short message can be displayed in the messaging application.
一个实施例中,手机可以自动将短消息应用中具有邮箱地址且与用户互通短消息频率高的联系人自动添加到邮件应用的VIP邮件联系人中。In one embodiment, the mobile phone can automatically add contacts in the short message application that have an email address and have a high frequency of short message exchange with the user to the VIP mail contacts of the mail application.
一个实施例中,手机可以将具有邮箱地址且与用户互通短消息频率高的联系人自动添加到用户的VIP邮件联系人中,即手机自动添加VIP邮件联系人时需要判断该联系人是否具有邮箱地址且是否是与用户互通短消息频率高的联系人。In one embodiment, the mobile phone can automatically add a contact with an email address and a high frequency of communicating with the user to the user's VIP mail contact, that is, when the mobile phone automatically adds a VIP mail contact, it needs to determine whether the contact has an mailbox Address and whether it is a contact with a high frequency of short message exchange with the user.
本申请实施例的添加邮件联系人的方法,手机可以自动将与用户互通短信频率高的联系人添加到邮件应用的VIP邮件联系人中,避免了用户手动进行添加,有助于降低用户的操作复杂度、提高用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the method for adding email contacts in the embodiment of this application, the mobile phone can automatically add contacts with a high frequency of communicating with the user to the VIP email contacts of the mail application, which avoids the user from adding manually and helps reduce user operations Complexity, improve user operation efficiency, improve the intelligence of electronic equipment, and enhance user experience.
一个实施例中,手机可以自动将在预设时间段内与用户互通邮件的频率大于或者等于预设频率阈值的联系人的邮箱地址自动添加到邮件应用的VIP邮件联系人中。In an embodiment, the mobile phone can automatically add the email addresses of contacts whose frequency of communicating emails with the user within a preset time period is greater than or equal to the preset frequency threshold to the VIP email contacts of the mail application.
一个实施例中,手机也可以将与用户互通邮件的频率大于或者等于预设频率阈值的联系人自动添加到邮件应用的其他类型的邮件联系人中,示例性的,将这些邮箱地址自动添加到邮件应用的通讯录中。In an embodiment, the mobile phone can also automatically add contacts whose frequency of communicating with the user is greater than or equal to the preset frequency threshold to other types of mail contacts in the mail application. For example, these email addresses are automatically added to Mail application’s address book.
图7示出了手机的另一组GUI。Figure 7 shows another set of GUIs of the mobile phone.
当手机检测到用户开启自动添加VIP邮件联系人的操作后,显示如图7中的(a)所示的GUI。When the mobile phone detects that the user has started the operation of automatically adding VIP mail contacts, the GUI shown in (a) in Figure 7 is displayed.
参见图7中的(a)所示的GUI,该GUI为邮件应用的另一界面,手机可以显示窗口701,该窗口701中包括对自动添加VIP联系人的功能介绍。如图7中的(a),该窗口701中包括文字提醒“开启该功能后,可以与您经常互通邮件的联系人自动添加到VIP邮件联系人中”。Refer to the GUI shown in (a) in FIG. 7, which is another interface of the mail application. The mobile phone can display a window 701, which includes an introduction to the function of automatically adding VIP contacts. As shown in (a) in Figure 7, the window 701 includes a text reminder that "After you enable this function, the contacts you frequently exchange emails with are automatically added to VIP email contacts".
参见图7中的(b)所示的GUI,该GUI为邮件应用的收件箱的界面。从该GUI可以看出,邮件Dendi和Emily为与用户互通邮件频率高的邮件联系人。Refer to the GUI shown in (b) in FIG. 7, which is the interface of the inbox of the mail application. It can be seen from the GUI that Dendi and Emily are email contacts who exchange emails frequently with users.
参见图7中的(c)所示的GUI,该GU为邮件应用中VIP邮件联系人的另一界面。邮件应用的VIP邮件联系人中除了之前有的Apple、Bob和Charles以外,自动添加了Dendi和Emily,其中,Dendi和Emily均为邮件应用中与用户互通邮件频率高的联系人。Referring to the GUI shown in (c) in FIG. 7, the GU is another interface of the VIP mail contact in the mail application. In addition to the previous Apple, Bob, and Charles, the VIP mail contacts of the mail application automatically add Dendi and Emily. Among them, Dendi and Emily are all contacts in the mail application that communicate with users frequently.
一个实施例中,与用户互通邮件频率高的邮件联系人可以为在预设时间段内,与用户互通邮件的频率大于或者等于预设频率的联系人的邮箱地址。In one embodiment, the email contact with a high frequency of email exchange with the user may be the email address of the contact whose frequency of email exchange with the user is greater than or equal to the preset frequency within a preset time period.
一个实施例中,手机在确定与用户互通邮件的频率大于或者等于预设频率的联系人的邮箱地址之前或者之后,可以对预设时间段内的邮件或者对确定的互通邮件频率高的邮件联系人的邮件进行过滤筛选,判断哪些邮件为垃圾邮件,哪些邮件为非垃圾邮件。手机判断邮件是否为垃圾邮件的条件包括但不限于:In one embodiment, before or after determining the email address of the contact whose frequency of email exchange with the user is greater than or equal to the preset frequency, the mobile phone may contact emails within a preset time period or emails with a high frequency of email exchanges. People’s mails are filtered to determine which mails are spam and which are not spam. The conditions for the mobile phone to determine whether an email is spam include but are not limited to:
(1)通过邮件中的关键词确定是否为垃圾邮件(1) Determine whether it is spam through keywords in the email
例如,手机可以根据关键词识别,首先将垃圾邮件中一些特征性的字眼收集起来(比 如打折、免费、促销等),形成一个大的数据库,当一封邮件发出来的时候就会自动匹配邮件头、邮件标题、邮件内容中与这些库里的关键词特征,如果有相类似的字眼,就会判定为垃圾邮件。For example, mobile phones can identify based on keywords, and first collect some characteristic words in spam emails (such as discounts, free, promotions, etc.) to form a large database. When an email is sent, it will automatically match the email. If there are similar words in the header, mail title, mail content, and keywords in these libraries, it will be judged as spam.
(2)通过用户设置的规则判断是否为垃圾邮件(2) Determine whether it is spam based on the rules set by the user
例如,用户设置了00:00至07:00内收到的邮件为垃圾邮件。For example, the user sets the mail received between 00:00 and 07:00 as spam.
又例如,用户设置了邮件大小大于10Mb的邮件为垃圾邮件。For another example, the user sets a mail with a mail size greater than 10Mb as spam.
(3)通过邮件中包含的URL链接确定是否为垃圾邮件(3) Determine whether it is spam through the URL link contained in the email
例如,如果一封邮件中包括URL链接,则手机可以根据URL链接指向的网站判断,若该网站为广告商网站或者为其他用户不希望打开的网站,则可以确定此封邮件为来及邮件。For example, if an email includes a URL link, the mobile phone can determine according to the website that the URL link points to. If the website is an advertiser website or a website that other users do not want to open, it can determine that the email is an incoming email.
手机将预设时间内收到的邮件进行过滤筛选,从而确定出哪些邮件是垃圾邮件。手机可以只对识别为非垃圾邮件的发件人地址进行判断,从而确定其是否为VIP邮件联系人。应理解,如果邮件应用中之间保存了Dendi和Emily,即保存了Dendi的姓名和邮箱地址,以及Emily的姓名和邮箱地址,则VIP邮件联系人中可以显示Dendi和Emily的姓名。如果邮件应用中只保存了Dendi和Emily的邮箱地址,则VIP邮件联系人中可以显示Dendi和Emily对应的邮箱地址。The mobile phone will filter the mails received within the preset time to determine which mails are spam. The mobile phone can only judge the sender address that is identified as non-spam to determine whether it is a VIP mail contact. It should be understood that if Dendi and Emily are saved in the mail application, that is, Dendi's name and email address, and Emily's name and email address are saved, then the names of Dendi and Emily can be displayed in the VIP email contact. If only the email addresses of Dendi and Emily are saved in the mail application, the corresponding email addresses of Dendi and Emily can be displayed in the VIP mail contacts.
本申请实施例的添加邮件联系人的方法,手机可以自动将邮件应用中与用户互通邮件频率高的邮件联系人添加到邮件应用的VIP邮件联系人中,避免了用户手动进行添加,有助于降低用户的操作复杂度、提高用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the method for adding mail contacts in the embodiment of this application, the mobile phone can automatically add the mail contacts in the mail application that communicate with the user frequently to the VIP mail contacts of the mail application, which avoids the user from adding manually and helps Reduce user operation complexity, improve user operation efficiency, improve the intelligence of electronic equipment, and enhance user experience.
一个实施例中,手机可以提示用户选择需要自动添加到VIP邮件联系人中的联系人类型。In one embodiment, the mobile phone may prompt the user to select the contact type that needs to be automatically added to the VIP mail contact.
图8示出了手机的另一组GUI。Figure 8 shows another set of GUIs of the mobile phone.
参见图8中的(a)所示的GUI,该GUI为邮件应用的另一设置界面,该GUI包括账户设置、邮件文字大小设置、是否总是密送给自己的设置以及是否自动添加VIP联系人的设置。当手机检测到用户点击自动添加VIP邮件联系人的控件的操作后,可以显示如图8中的(b)所示的GUI。Refer to the GUI shown in Figure 8(a). This GUI is another setting interface of the mail application. The GUI includes account settings, email text size settings, whether to always BCC to yourself, and whether to automatically add VIP contacts People set. When the mobile phone detects that the user has clicked the operation of the control for automatically adding VIP mail contacts, it can display the GUI as shown in (b) in FIG. 8.
参见图8中的(b)所示的GUI,该GUI为邮件应用的另一界面,手机可以显示窗口801,该窗口801中包括对自动添加VIP邮件联系人的选择。如图8中的(b)所示,该窗口801中,手机可以提醒用户选择需要自动添加的联系人的类型,其中,需要自动添加的联系人的类型包括“与您通话频率高的联系人”,“联系人应用中您收藏的联系人”、“与您互通短消息频率高的联系人”和“与您互通邮件频率高的联系人”。当手机检测到用户选择“与您通话频率高的联系人”对应的控件802且检测到用户点击控件803的操作后,可以自动将与用户通话频率高的联系人自动添加到VIP邮件联系人中。示例性的,手机可以自动将在第一时间段内与用户通话的频率高于第一频率阈值的用户自动添加到VIP邮件联系人中。Refer to the GUI shown in (b) in FIG. 8, which is another interface of the mail application, and the mobile phone can display a window 801 that includes the option of automatically adding VIP mail contacts. As shown in (b) in Figure 8, in this window 801, the mobile phone can remind the user to select the type of contact that needs to be automatically added, where the type of contact that needs to be automatically added includes "contacts with high frequency ", "Your favorite contacts in the Contacts application", "Contacts who exchange messages with you frequently" and "Contacts who exchange emails with you frequently". When the mobile phone detects that the user selects the control 802 corresponding to the "contact with you frequently" and detects that the user clicks on the control 803, it can automatically add the contact with the user frequently to the VIP mail contact . Exemplarily, the mobile phone may automatically add users whose frequency of talking with the user during the first time period is higher than the first frequency threshold to the VIP mail contacts.
示例性的,手机可以自动将在一个星期内,与用户通话的次数大于或者等于20次的用户自动添加到VIP邮件联系人中。Exemplarily, the mobile phone can automatically add users who have made more than or equal to 20 calls to the user within a week to the VIP mail contact.
邮件应用的VIP邮件联系人中除了之前有的Apple、Bob和Charles以外,自动添加了Frank和Joe,其中,Frank和Joe均为联系人应用中与用户通话频率较高的用户。In addition to the previous Apple, Bob, and Charles, the VIP mail contacts of the mail application are automatically added with Frank and Joe. Among them, Frank and Joe are users in the contacts application with a high frequency of conversations with users.
一个实施例中,该窗口801中,手机可以提醒用户选择需要自动添加的联系人的类型,其中,需要自动添加的联系人的类型包括“具有邮箱地址且与您通话频率高的联系人”,“联系人应用中具有邮箱地址且您收藏的联系人”、“具有邮箱地址且与您互通短消息频率高的联系人”和“与您互通邮件频率高的联系人”。In one embodiment, in this window 801, the mobile phone may remind the user to select the type of contact that needs to be automatically added, where the type of contact that needs to be automatically added includes "contacts with email addresses and high frequency of calls with you", "Contacts that have an email address in the Contacts application and your favorite contacts", "Contacts who have an email address and have a high frequency of messaging with you", and "Contacts with a high frequency of messaging with you".
示例性的,手机可以自动将在一个星期内,与用户通话的次数大于或者等于20次且具有邮箱地址的用户自动添加到VIP邮件联系人中。Exemplarily, the mobile phone can automatically add users who have more than or equal to 20 calls with the user within a week and have an email address to the VIP mail contact.
本申请实施例的添加邮件联系人的方法,手机可以让用户选择自动添加的联系人的类型,避免了用户手动进行添加,有助于降低用户的操作复杂度、提高用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the method for adding email contacts in the embodiments of the present application, the mobile phone allows the user to select the type of contacts to be added automatically, which avoids the user from manually adding, which helps to reduce the user’s operational complexity, improve the user’s operational efficiency, and improve electronic The degree of intelligence of the equipment improves the user experience.
以上结合图4至图8,介绍了本申请实施例提供的几组GUI,下面介绍本申请实施例提供的添加邮件联系人的方法。The above describes several sets of GUIs provided by the embodiments of the present application in conjunction with FIGS. 4 to 8, and the method for adding mail contacts provided by the embodiments of the present application is described below.
图9示出了本申请实施例提供的添加联系人的方法900的示意性流程图。如图9所示,该方法900包括:FIG. 9 shows a schematic flowchart of a method 900 for adding a contact provided by an embodiment of the present application. As shown in FIG. 9, the method 900 includes:
S910,电子设备获取第一应用中的一个或者多个联系人以及与该一个或者多个联系人关联的联系人信息。S910. The electronic device obtains one or more contacts in the first application and contact information associated with the one or more contacts.
示例性的,当手机检测到用户点击自动添加VIP邮件联系人的控件的操作后,邮件应用的content resolver可以调用query接口向电话或者联系人应用的content provider对应的query接口发送第一查询请求信息,该第一查询请求信息用于请求查询在第一时间段内,电话或者联系人应用中与一个或者多个联系人通话记录的信息;或者,该第一查询请求信息用于请求查询联系人应用中一个或者多个联系人是否为用户收藏的联系人信息。Exemplarily, when the mobile phone detects that the user clicks the operation of the control to automatically add VIP mail contacts, the content resolver of the mail application can call the query interface to send the first query request information to the query interface corresponding to the content provider of the phone or contact application , The first query request information is used to request query information about the call records with one or more contacts in the phone or contact application within the first time period; or, the first query request information is used to request query contacts Whether one or more contacts in the application are the user's favorite contact information.
电话或者联系人应用的content provider在接收到该URI后,通过解析该URI,然后查询联系人应用数据库中的通话记录的信息,并将查询到的信息携带在第一查询请求响应信息中通过query接口发送给邮件应用的content resolver的query接口。邮件应用的content resolver将接收到的数据返回给应用程序层的邮件应用。邮件应用可以根据返回的数据,从该一个或者多个联系人中确定在第一时间段内,与用户通话频率大于或者等于第一频率阈值的联系人;或者,从该一个或者多个联系人中确定联系人应用中用户收藏的联系人。After receiving the URI, the content provider of the phone or contact application parses the URI, and then queries the call record information in the contact application database, and carries the queried information in the first query request response information through query The interface is sent to the query interface of the content resolver of the mail application. The content resolver of the mail application returns the received data to the mail application of the application layer. The mail application can determine, from the one or more contacts, the contact with the user whose call frequency is greater than or equal to the first frequency threshold in the first time period according to the returned data; or, from the one or more contacts Determine the user's favorite contacts in the contacts application.
示例性的,该第一查询请求信息中包括URI,该URI用于指示查询通话记录信息,或者用于指示查询用户收藏的联系人信息。Exemplarily, the first query request information includes a URI, and the URI is used to indicate to query call record information, or to indicate to query the user's favorite contact information.
示例性的,若该URI用于指示查询通话记录信息,联系人应用的content provider可以将查询到的用户所有的通话记录发送给邮件应用的content resolver;或者,联系人应用的content provider也可以将一段时间(例如,一个月或者一个星期)内用户的通话记录发送给邮件应用的content resolver。Exemplarily, if the URI is used to indicate the query call record information, the content provider of the contact application can send all the call records of the queried user to the content resolver of the mail application; or the content provider of the contact application can also send The call history of the user within a period of time (for example, a month or a week) is sent to the content resolver of the mail application.
邮件应用在接收到该通话记录信息后,可以从该一个或者多个联系人中确定在第一时间段内通话频率大于或者等于第一频率阈值的联系人。示例性的,邮件应用可以确定用户在一个星期内的通话记录次数大于等于20次的联系人;示例性的,邮件应用可以确定用户在一个月内的通话次数大于或者等于200次的联系人。After receiving the call record information, the mail application may determine, from the one or more contacts, the contact whose call frequency is greater than or equal to the first frequency threshold in the first time period. Exemplarily, the mail application can determine the contacts of the user whose call history is greater than or equal to 20 times in a week; for example, the mail application can determine the contacts of the user whose call records are greater than or equal to 200 times in a month.
示例性的,若该URI用于指示查询用户收藏的联系人信息,联系人应用的content provider可以将查询到的用户收藏的联系人信息发送给邮件应用的content resolver。Exemplarily, if the URI is used to indicate to query the user's favorite contact information, the content provider of the contact application may send the queried user's favorite contact information to the content resolver of the mail application.
联系人应用在接收到该通话记录信息后,可以从该一个或者多个联系人中确定用户收藏的联系人信息。After receiving the call log information, the contact application can determine the user's favorite contact information from the one or more contacts.
示例性的,当手机检测到用户点击自动添加VIP邮件联系人的控件的操作后,邮件应用的content resolver可以调用query接口向短消息应用的content provider对应的query接口发送第二查询请求信息,该第二查询请求信息用于请求查询在第二时间段内,短消息应用中与一个或者多个联系人互通短消息的信息。Exemplarily, when the mobile phone detects that the user clicks the operation of automatically adding the VIP mail contact control, the content resolver of the mail application can call the query interface to send the second query request information to the query interface corresponding to the content provider of the short message application. The second query request information is used to request to query the information of the short message exchange with one or more contacts in the short message application in the second time period.
短消息应用的content provider在接收到URI后,通过解析该URI,然后查询短消息应用数据库中的互通短消息的信息,并将查询到的信息携带在第二查询请求响应信息中通过query接口发送给邮件应用的content resolver的query接口。邮件应用的content resolver将接收到的数据返回给应用程序层的邮件应用。邮件应用可以根据返回的数据,从该一个或者多个联系人中确定在第二时间段内,与用户互通短消息的频率大于或者等于第二频率阈值的联系人。After receiving the URI, the content provider of the short message application parses the URI, and then queries the interoperable short message information in the short message application database, and carries the queried information in the second query request response information and sends it through the query interface The query interface for the content resolver of the mail application. The content resolver of the mail application returns the received data to the mail application of the application layer. The mail application may determine, from the one or more contacts according to the returned data, the contacts whose frequency of short message exchange with the user is greater than or equal to the second frequency threshold in the second time period.
应理解,本申请实施例中,电话或者联系人应用可以和短消息应用之间互通数据,邮件应用查询短消息应用中保存的数据,也可以理解为邮件应用查询电话或者联系人应用中保存的数据。It should be understood that in this embodiment of the application, the phone or contact application can exchange data with the short message application, and the mail application queries the data stored in the short message application, and it can also be understood as the mail application queries the phone or contacts stored in the application. data.
示例性的,邮件应用可以通过邮件应用数据库进行查询,确定第三时间段内,与用户互发邮件的次数大于或者等于预设数值的邮件联系人。应理解,与用户互发邮件的次数可以为用户接收该邮件联系人发送的邮件的次数,和/或,用户向该邮件联系人发送邮件的次数。Exemplarily, the mail application may query through the mail application database to determine the mail contacts whose number of exchanges of mails with the user is greater than or equal to the preset value in the third time period. It should be understood that the number of emails exchanged with the user may be the number of emails sent by the email contact received by the user, and/or the number of emails sent by the user to the email contact.
S920,电子设备根据所述联系人信息,从该一个或者多个联系人应用中确定该至少一个联系人,且确定在第一应用中保存有该至少一个联系人中每个联系人的邮箱地址。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 email address of each contact in the at least one contact is stored in the first application .
示例性的,该第一应用为电话或者联系人应用,该联系人信息为该电话或者联系人应用中保存的该一个或者多个联系人的通话数据,该至少一个联系人中每个联系人为在第一时间段内,用户与其通话的频率大于或者等于第一频率阈值的联系人;或者,在第一时间段内,用户与其通话次数大于或者等于预设通话次数(包括向第一联系人去电的次数,和/或,接收第一联系人来电的次数)的联系人。Exemplarily, the first application is a phone or contact application, the contact information is call data of the one or more contacts stored in the phone or contact application, and each contact in the at least one contact is In the first time period, the user talks with a contact whose frequency is greater than or equal to the first frequency threshold; or, in the first time period, the user talks with a contact greater than or equal to the preset number of calls (including the first contact The number of outgoing calls, and/or the number of received calls from the first contact).
示例性的,该第一应用为电话或者联系人应用,该联系人信息为该电话或者联系人应用中保存的该一个或者多个联系人的短消息数据,该至少一个联系人中每个联系人为在第二时间段内,用户与其互通短消息的频率大于或者等于第二频率阈值的联系人;或者,在第二时间段内,用户与其互通短消息的次数大于预设互发短消息次数(包括向第一联系人发送短消息的次数,和/或,接收第一联系人发送的短消息的次数)的联系人。Exemplarily, the first application is a phone or contact application, the contact information is short message data of the one or more contacts stored in the phone or contact application, and each contact in the at least one contact In the second time period, the user exchanges short messages with a contact whose frequency is greater than or equal to the second frequency threshold; or, in the second time period, the number of times the user exchanges short messages with him is greater than the preset number of short message exchanges (Including the number of short messages sent to the first contact, and/or the number of receiving short messages sent by the first contact).
示例性的,该第一应用为联系人应用,该联系人信息为该联系人应用中保存的该一个或者多个联系人是否为收藏的联系人,该至少一个联系人中每个联系人为用户收藏的联系人。Exemplarily, the first application is a contact application, the contact information is whether the one or more contacts saved in the contact application are favorite contacts, and each contact in the at least one contact is a user Favorite contacts.
示例性的,邮件应用在确定该至少一个联系人后,可以继续通过邮件应用的content resolver向联系人应用的content provider发送第三查询请求信息,该第三查询请求信息用于查询该至少一个联系人是否有邮箱地址。联系人应用的content provider通过query接口接收到该第三查询请求信息后,可以对联系人应用数据库中该至少一个的邮箱地址进行查询,并将查询到的结果携带在第三查询请求响应信息中发送给邮件应用的content resolver。Exemplarily, after the mail application determines the at least one contact, it may continue to send the third query request information to the content provider of the contact application through the content resolver of the mail application, and the third query request information is used to query the at least one contact Does the person have an email address. After receiving the third query request information through the query interface, the content provider of the contact application can query the at least one email address in the contact application database, and carry the query result in the third query request response information Sent to the content resolver of the mail application.
邮件应用在接收到该至少一个联系人的邮箱地址的信息后,如果该至少一个联系人中每个联系人都有对应的邮箱地址,则电子设备可以将至少一个联系人中每个联系人的邮箱地址添加到第一邮件联系人集合中。After the mail application receives the email address information of the at least one contact, if each contact in the at least one contact has a corresponding email address, the electronic device can send the The email address is added to the first mail contact collection.
一个实施例中,邮件应用的content resolver向联系人应用的content provider发送的第一查询请求信息中,可以携带查询电话或者联系人应用中联系人的通话记录的URI以及查询联系人的邮箱地址的URI。联系人应用的content provider可以在接收到该第一查询请求信息后,将查询到的结果携带在第一查询请求响应信息中发送给邮件应用的content resolver。In one embodiment, the first query request message sent by the content resolver of the mail application to the content provider of the contact application may carry the URI for querying the phone number or the call record of the contact in the contact application and the query for the email address of the contact URI. The content provider of the contact application may, after receiving the first query request information, carry the query result in the first query request response information and send it to the content resolver of the mail application.
邮件应用可以在接收到该查询结果后,先判断在第一时间段内通话频率大于或者等于第一频率阈值的至少一个联系人的信息,然后确定该至少一个联系人中具有邮箱地址的联系人。After receiving the query result, the mail application may first determine the information of at least one contact whose call frequency is greater than or equal to the first frequency threshold in the first time period, and then determine the contact with an email address among the at least one contact .
或者,该邮件应用也可以先判断所有的联系人中具有邮箱地址的联系人,然后从该具有邮箱地址的联系人中确定在第一时间段内通话频率大于或者等于第一频率阈值的联系人。Alternatively, the mail application can also first determine all contacts with email addresses, and then determine from the contacts with email addresses the contacts whose call frequency is greater than or equal to the first frequency threshold in the first time period .
S930,电子设备将至少一个联系人中每个联系人的邮箱地址添加到邮件应用中的第一邮件联系人集合中。S930. The electronic device adds the email address of each contact in the at least one contact to the first mail contact set in the mail application.
应理解,本申请实施例中,电子设备将至少一个联系人的邮箱地址添加到邮件应用中的第一邮件联系人集合中,还可以理解为电子设备将至少一个联系人的邮箱地址添加到邮件应用中的第一邮箱地址集合中。It should be understood that, in this embodiment of the application, the electronic device adds the email address of at least one contact to the first set of email contacts in the mail application. It can also be understood that the electronic device adds the email address of at least one contact to the email. The first email address set in the application.
还应理解,本申请实施例中,第一邮箱地址集合可以为邮件应用中的VIP邮件联系人的邮箱地址集合,也可以为邮件应用中所有联系人的邮箱地址集合,本申请实施例对此并不作任何限定。It should also be understood that in this embodiment of the application, the first set of email addresses may be the set of email addresses of VIP mail contacts in the mail application, or may be the set of email addresses of all contacts in the mail application. It does not make any restrictions.
一个实施例中,该至少一个个联系人中某些联系人包括多个邮箱地址,则电子设备可以提醒用户从多个邮箱地址中选择一个邮箱地址加入该第一邮箱地址集合中;或者,电子设备可以默认保存第一个邮箱地址加入该第一邮箱地址集合中;或者,电子设备可以将用户最新保存的邮箱地址加入该第一邮箱地址集合中。In an embodiment, if some of the at least one contact includes multiple email addresses, the electronic device may remind the user to select an email address from the multiple email addresses to add to the first set of email addresses; or The device may save the first email address and add it to the first email address set by default; or the electronic device may add the user's newly saved email address to the first email address set.
一个实施例中,电子设备可以先确定该至少一个联系人中每个联系人的邮箱地址是否已经包含在该第一邮箱地址集合中。在该至少一个联系人的邮箱地址中均不在该第一邮箱地址集合中时,电子设备可以将该至少一个联系人的邮箱地址自动添加到该第一邮箱地址集合中;在该至少一个联系人中至少部分联系人的邮箱地址已经在该第一邮箱地址集合中时,电子设备可以确定不将该至少部分联系人的邮箱地址添加到该第一邮箱地址集合中,从而避免重复添加相同的邮箱地址。In an embodiment, the electronic device may first determine whether the email address of each contact in the at least one contact is already included in the first set of email addresses. When none of the email addresses of the at least one contact is in the first email address set, the electronic device may automatically add the email address of the at least one contact to the first email address set; in the at least one contact When the email addresses of at least part of the contacts in the first email address set are already in the first email address set, the electronic device may determine not to add the email addresses of the at least part of the contacts to the first email address set, thereby avoiding repeatedly adding the same email address address.
示例性的,该第一邮件联系人集合为邮件应用的VIP邮件联系人。Exemplarily, the first mail contact set is VIP mail contacts of a mail application.
本申请实施例的添加邮件联系人的方法,手机可以自动将一些比较重要的联系人的邮箱地址添加到邮件应用的VIP邮件联系人中,其中,添加的方式包括但不限于将与用户通话频率高的联系人的邮箱地址自动添加到VIP邮件联系人中,将用户收藏的联系人的邮箱地址自动添加到VIP邮件联系人中,将与用户互通短消息频率高的联系人的邮箱地址自动添加到VIP邮件联系人中,将与用户互通邮件频率高的联系人的邮箱地址自动添加到VIP邮件联系人中,这样避免了用户手动进行添加,有助于降低用户的操作复杂度、提高用户的操作效率,提高电子设备的智能化程度,提升用户体验。In the method for adding mail contacts in the embodiment of the application, the mobile phone can automatically add the email addresses of some important contacts to the VIP mail contacts of the mail application. The method of adding includes but not limited to the frequency of calling with the user. The email address of the high contact is automatically added to the VIP mail contact, the email address of the user's favorite contact is automatically added to the VIP mail contact, and the email address of the contact who exchanges short messages frequently with the user is automatically added In the VIP mail contacts, the email addresses of the contacts who exchange emails frequently with the user are automatically added to the VIP mail contacts. This prevents the user from adding manually, which helps to reduce the user’s operational complexity and improve the user’s Operation efficiency, improve the intelligence of electronic equipment, and enhance user experience.
应理解,本申请实施例中自动添加联系人的方式并不限于以上几种方式,还可以有其他方式。示例性的,邮件应用可以与社交应用互通数据,其中社交应用的数据库中保存有用户的好友以及每个好友对应的邮箱地址信息,电子设备可以根据与每个好友互动的频率, 确定是否将该好友的邮箱地址添加到邮件应用的VIP邮件联系人列表中。如果该社交应用中采用的是白名单机制,则电子设备在自动添加VIP邮件联系人时可以不用进行过滤筛选的操作,因为社交应用中用户的好友均是由用户认证过的好友。与每个好友的互动的频率可以包括与每个好友的互发消息的频率(例如,一个星期与该好友互发消息的次数),与每个好友通话的频率(例如,一个星期内与该好友进行语音通话或者视频通话的次数)等等。It should be understood that the method of automatically adding contacts in the embodiments of the present application is not limited to the above methods, and other methods are also possible. Exemplarily, a mail application can exchange data with a social application. The database of the social application stores the user’s friends and the email address information corresponding to each friend. The electronic device can determine whether to use the The friend's email address is added to the VIP mail contact list of the mail application. If the whitelist mechanism is adopted in the social application, the electronic device does not need to perform filtering operations when automatically adding VIP mail contacts, because the user's friends in the social application are all friends who have been authenticated by the user. The frequency of interaction with each friend may include the frequency of messaging with each friend (for example, the number of messages exchanged with the friend in a week), and the frequency of calling each friend (for example, with the The number of voice calls or video calls made by friends) and so on.
示例性的,该社交应用为Facebook、Twitter、QQ、微信、MSN等等。Exemplarily, the social application is Facebook, Twitter, QQ, WeChat, MSN, etc.
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that, in order to implement the above-mentioned functions, an electronic device includes hardware and/or software modules corresponding to each function. In combination with the algorithm steps of the examples described in the embodiments disclosed herein, this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Those skilled in the art can use different methods for each specific application in combination with the embodiments to implement the described functions, but such implementation should not be considered as going beyond the scope of the present application.
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment, the electronic device can be divided into functional modules according to the foregoing method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
在采用对应各个功能划分各个功能模块的情况下,图10示出了上述实施例中涉及的电子设备1000的一种可能的组成示意图,如图10所示,该电子设备1000可以包括:获取单元1001、确定单元1002和添加单元1003。In the case of dividing each functional module corresponding to each function, FIG. 10 shows a schematic diagram of a possible composition of the electronic device 1000 involved in the foregoing embodiment. As shown in FIG. 10, the electronic device 1000 may include: an acquiring unit 1001, a determining unit 1002, and an adding unit 1003.
其中,获取单元1001可以用于支持电子设备1000执行上述步骤S910,和/或用于执行本文所描述的技术的其他过程。Wherein, the acquiring 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 technology described herein.
确定单元1002可以用于支持电子设备1000执行上述步骤S920,和/或用于执行本文所描述的技术的其他过程。The determining unit 1002 may be used to support the electronic device 1000 to perform the above step S920, and/or to perform other processes of the technology described herein.
添加单元1002可以用于支持电子设备1000执行上述步骤S930,和/或用于执行本文所描述的技术的其他过程。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 technology described herein.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the foregoing method embodiments can be cited in the functional description of the corresponding functional module, and will not be repeated here.
本实施例提供的电子设备,用于执行上述添加邮件联系人的方法,因此可以达到与上述实现方法相同的效果。The electronic device provided in this embodiment is used to execute the above method for adding a mail contact, and therefore can achieve the same effect as the above implementation method.
在采用集成的单元的情况下,电子设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备的动作进行控制管理,例如,可以用于支持电子设备执行上述各个单元执行的步骤。存储模块可以用于支持电子设备执行存储程序代码和数据等。通信模块,可以用于支持电子设备与其他设备的通信。In the case of an integrated unit, the electronic device may include a processing module, a storage module, and a communication module. Wherein, the processing module can be used to control and manage the actions of the electronic device, for example, can be used to support the electronic device to execute the steps performed by the above-mentioned units. The storage module can be used to support the electronic device to execute the storage program code and data. The communication module can be used to support communication between electronic devices and other devices.
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。Among them, the processing module may be a processor or a controller. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on. The storage module may be a memory. The communication module may specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, and other devices that interact with other electronic devices.
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电 子设备可以为具有图1所示结构的设备。In an embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1.
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的添加邮件联系人的方法。This embodiment also provides a computer storage medium in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device is caused to execute the above-mentioned related method steps to realize the adding of mail contacts in the above-mentioned embodiment. Methods.
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的添加邮件联系人的方法。This embodiment also provides a computer program product, which when the computer program product runs on a computer, causes the computer to execute the above-mentioned related steps, so as to implement the method for adding a mail contact in the above-mentioned embodiment.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的添加邮件联系人的方法。In addition, the embodiments of the present application also provide a device. The device may specifically be a chip, component or module. The device may include a connected processor and a memory; wherein the memory is used to store computer execution instructions. When the device is running, The processor can execute computer-executable instructions stored in the memory, so that the chip executes the method for adding a mail contact in the foregoing method embodiments.
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the electronic equipment, computer storage medium, computer program product, or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding method provided above. The beneficial effects of the method will not be repeated here.
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and conciseness of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functions as required. The function module is completed, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of modules or units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of software products, which are stored in a storage medium It includes several instructions to make a device (may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above content is only the specific implementation of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Covered in the scope of protection of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Claims (16)
- 一种添加邮件联系人的方法,所述方法应用于电子设备,其特征在于,所述方法包括:A method for adding mail contacts, the method is applied to an electronic device, and is characterized in that the method includes:获取第一应用中的第一联系人以及与所述第一联系人相关联的第一联系人信息,所述第一应用为所述电子设备中除邮件应用以外的应用;Acquiring a first contact in a first application and first contact information associated with the first contact, where the first application is an application other than a mail application in the electronic device;在所述第一联系人信息满足预设条件,且所述第一应用中保存有所述第一联系人的一个或者多个邮箱地址时,将所述一个或者多个邮箱地址自动添加到邮件应用中的第一邮箱地址集合中。When the first contact information meets a preset condition, and one or more email addresses of the first contact are stored in the first application, the one or more email addresses are automatically added to the email The first email address set in the application.
- 根据权利要求1所述的方法,其特征在于,所述第一应用为电话或者联系人应用,所述第一联系人信息为所述电话或者联系人应用中保存的所述第一联系人的通话数据,所述预设条件为在第一时间段内,与所述第一联系人的通话频率大于或者等于第一频率阈值。The method according to claim 1, wherein the first application is a phone or contact application, and the first contact information is the information of the first contact saved in the phone or contact application. For call data, the preset condition is that the frequency of the call with the first contact is greater than or equal to the first frequency threshold in the first time period.
- 根据权利要求1所述的方法,其特征在于,所述第一应用为电话或者联系人应用,所述第一联系人信息为所述电话或者联系人应用中保存的所述第一联系人的短消息数据,所述预设条件为在第二时间段内,与所述第一联系人互通短消息的频率大于或者等于第二频率阈值。The method according to claim 1, wherein the first application is a phone or contact application, and the first contact information is the information of the first contact saved in the phone or contact application. For short message data, the preset condition is that the frequency of communicating short messages with the first contact in the second time period is greater than or equal to a second frequency threshold.
- 根据权利要求1所述的方法,其特征在于,所述第一应用为联系人应用,所述第一联系人信息为所述联系人应用中保存的所述第一联系人是否为收藏的联系人的信息,所述预设条件为所述第一联系人为收藏的联系人。The method according to claim 1, wherein the first application is a contact application, and the first contact information is whether the first contact saved in the contact application is a favorite contact Person information, the preset condition is that the first contact is a favorite contact.
- 根据权利要求1至4中任一项所述的方法,其特征在于,所述将所述第一联系人对应的一个或者多个邮箱地址自动添加到邮件应用中的第一邮箱地址集合中之前,所述方法还包括:The method according to any one of claims 1 to 4, characterized in that before automatically adding one or more email addresses corresponding to the first contact to the first email address set in the mail application , The method further includes:确定所述一个或者多个邮箱地址不在所述第一邮箱地址集合中。It is determined that the one or more email addresses are not in the first email address set.
- 根据权利要求1至5中任一项所述的方法,其特征在于,所述第一联系人对应多个邮箱地址,所述将所述第一联系人对应的一个或者多个邮箱地址自动添加到邮件应用中的第一邮箱地址集合中,包括:The method according to any one of claims 1 to 5, wherein the first contact corresponds to multiple email addresses, and the one or more email addresses corresponding to the first contact are automatically added To the first set of email addresses in the mail application, including:从所述多个邮箱地址中确定第一邮箱地址;Determine the first email address from the multiple email addresses;将所述第一邮箱地址自动添加到邮件应用中第一邮箱地址集合中。The first email address is automatically added to the first email address set in the mail application.
- 根据权利要求1至7中任一项所述的方法,其特征在于,所述第一邮箱地址集合为邮件应用中贵宾VIP邮件联系人。The method according to any one of claims 1 to 7, wherein the first set of email addresses are VIP mail contacts in a mail application.
- 一种电子设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;多个应用程序;以及一个或多个程序,其中所述一个或多个程序被存储在所述一个或多个存储器中,当所述一个或者多个程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:An electronic device, which is characterized by comprising: one or more processors; one or more memories; multiple application programs; and one or more programs, wherein the one or more programs are stored in the one In or in multiple memories, when the one or more programs are executed by the one or more processors, the electronic device is caused to execute the following steps:获取第一应用中的第一联系人以及与所述第一联系人相关联的第一联系人信息,所述第一应用为所述电子设备中除邮件应用以外的应用;Acquiring a first contact in a first application and first contact information associated with the first contact, where the first application is an application other than a mail application in the electronic device;在所述第一联系人信息满足预设条件,且所述第一应用中保存有所述第一联系人的一个或者多个邮箱地址时,将所述一个或者多个邮箱地址自动添加到邮件应用中的第一邮箱地址集合中。When the first contact information meets a preset condition, and one or more email addresses of the first contact are stored in the first application, the one or more email addresses are automatically added to the email The first email address set in the application.
- 根据权利要求8所述的电子设备,其特征在于,所述第一应用为电话或者联系人应用,所述第一联系人信息为所述电话或者联系人应用中保存的所述第一联系人的通话数据,所述预设条件为在第一时间段内,与所述第一联系人的通话频率大于或者等于第一频率阈值。The electronic device according to claim 8, wherein the first application is a phone or contact application, and the first contact information is the first contact saved in the phone or contact application The preset condition is that the frequency of the call with the first contact is greater than or equal to the first frequency threshold in the first time period.
- 根据权利要求8所述的电子设备,其特征在于,所述第一应用为电话或者联系人应用,所述第一联系人信息为所述电话或者联系人应用中保存的所述第一联系人的短消息数据,所述预设条件为在第二时间段内,与所述第一联系人互通短消息的频率大于或者等于第二频率阈值。The electronic device according to claim 8, wherein the first application is a phone or contact application, and the first contact information is the first contact saved in the phone or contact application The preset condition is that the frequency of communicating short messages with the first contact in the second time period is greater than or equal to a second frequency threshold.
- 根据权利要求8所述的电子设备,其特征在于,所述第一应用为联系人应用,所述第一联系人信息为所述联系人应用中保存的所述第一联系人是否为收藏的联系人,所述预设条件为所述第一联系人为收藏的联系人。The electronic device according to claim 8, wherein the first application is a contact application, and the first contact information is whether the first contact saved in the contact application is a favorite Contact, the preset condition is that the first contact is a favorite contact.
- 根据权利要求8至11中任一项所述的电子设备,其特征在于,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行以下步骤:The electronic device according to any one of claims 8 to 11, wherein when the one or more programs are executed by the processor, the electronic device is caused to perform the following steps:在将所述第一联系人对应的一个或者多个邮箱地址自动添加到邮件应用中的第一邮箱地址集合中之前,确定所述一个或者多个邮箱地址不在所述第一邮箱地址集合中。Before automatically adding one or more email addresses corresponding to the first contact to the first email address set in the mail application, it is determined that the one or more email addresses are not in the first email address set.
- 根据权利要求8至12中任一项所述的电子设备,其特征在于,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行以下步骤:The electronic device according to any one of claims 8 to 12, wherein when the one or more programs are executed by the processor, the electronic device is caused to perform the following steps:从所述多个邮箱地址中确定第一邮箱地址;Determine the first email address from the multiple email addresses;将所述第一邮箱地址自动添加到邮件应用中第一邮箱地址集合中。The first email address is automatically added to the first email address set in the mail application.
- 根据权利要求8至13中任一项所述的电子设备,其特征在于,所述第一邮箱地址集合为邮件应用中VIP邮件联系人。The electronic device according to any one of claims 8 to 13, wherein the first set of email addresses is a VIP mail contact in a mail application.
- 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-7中任一项所述的添加邮件联系人的方法。A computer storage medium, characterized by comprising computer instructions, when the computer instructions run on an electronic device, the electronic device is caused to execute the method of adding a mail contact according to any one of claims 1-7 method.
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-7中任一项所述的添加邮件联系人的方法。A computer program product, characterized in that when the computer program product runs on a computer, the computer is caused to execute the method for adding a mail contact according to any one of claims 1-7.
Applications Claiming Priority (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 |
CN201910346380.7 | 2019-04-26 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020216144A1 true WO2020216144A1 (en) | 2020-10-29 |
Family
ID=67715130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/085346 WO2020216144A1 (en) | 2019-04-26 | 2020-04-17 | Method for adding mail contact, and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110191223B (en) |
WO (1) | WO2020216144A1 (en) |
Families Citing this family (1)
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 (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932533A (en) * | 2012-10-15 | 2013-02-13 | 广东欧珀移动通信有限公司 | 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 |
CN103279858A (en) * | 2013-04-23 | 2013-09-04 | 东莞宇龙通信科技有限公司 | Method and terminal for adding addressee |
US20170250969A1 (en) * | 2016-02-29 | 2017-08-31 | Dropbox, Inc. | Techniques for invite enforcement and domain capture |
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 |
CN110191223A (en) * | 2019-04-26 | 2019-08-30 | 华为技术有限公司 | A kind of method and electronic equipment for adding mail contact |
Family Cites Families (14)
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 |
WO2012100409A1 (en) * | 2011-01-25 | 2012-08-02 | 宇龙计算机通信科技(深圳)有限公司 | Method and apparatus for adding recipient information |
CN102611644A (en) * | 2012-03-27 | 2012-07-25 | 上海量明科技发展有限公司 | Method and client terminal for collecting instant communication messages |
CN103365892A (en) * | 2012-03-31 | 2013-10-23 | 百度在线网络技术(北京)有限公司 | Method and device for processing multiple contact objects |
CN103986842B (en) * | 2014-05-30 | 2019-02-15 | 努比亚技术有限公司 | A kind of collecting method and device of contact data |
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 |
CN106713576B (en) * | 2015-07-23 | 2020-07-24 | 腾讯科技(深圳)有限公司 | Method and device for distinguishing multiple numbers in contact information |
CN105763425A (en) * | 2016-03-28 | 2016-07-13 | 珠海格力电器股份有限公司 | Mailbox processing method and device |
CN107135141B (en) * | 2017-03-13 | 2020-01-03 | 网易(杭州)网络有限公司 | Method and apparatus for automatically setting sender of electronic mail |
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 |
-
2019
- 2019-04-26 CN CN201910346380.7A patent/CN110191223B/en active Active
-
2020
- 2020-04-17 WO PCT/CN2020/085346 patent/WO2020216144A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932533A (en) * | 2012-10-15 | 2013-02-13 | 广东欧珀移动通信有限公司 | 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 |
CN103279858A (en) * | 2013-04-23 | 2013-09-04 | 东莞宇龙通信科技有限公司 | Method and terminal for adding addressee |
US20170250969A1 (en) * | 2016-02-29 | 2017-08-31 | Dropbox, Inc. | Techniques for invite enforcement and domain capture |
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 |
CN110191223A (en) * | 2019-04-26 | 2019-08-30 | 华为技术有限公司 | A kind of method and electronic equipment for adding mail contact |
Also Published As
Publication number | Publication date |
---|---|
CN110191223A (en) | 2019-08-30 |
CN110191223B (en) | 2021-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2019385366B2 (en) | Voice control method and electronic device | |
WO2021129688A1 (en) | Display method and related product | |
WO2021000807A1 (en) | Processing method and apparatus for waiting scenario in application | |
WO2021017889A1 (en) | Display method of video call appliced to electronic device and related apparatus | |
WO2020155014A1 (en) | Smart home device sharing system and method, and electronic device | |
WO2020207326A1 (en) | Dialogue message sending method and electronic device | |
JP7268275B2 (en) | Method and electronic device for presenting video on electronic device when there is an incoming call | |
WO2019072178A1 (en) | Method for processing notification, and electronic device | |
WO2021253975A1 (en) | Permission management method and apparatus for application, and electronic device | |
WO2022037407A1 (en) | Method and system for replying to message, and electronic device | |
WO2021027633A1 (en) | Picture processing method and related apparatus | |
WO2020259554A1 (en) | Learning-based keyword search method, and electronic device | |
WO2020224447A1 (en) | Method and system for adding smart home device to contacts | |
WO2020150894A1 (en) | Application-based incoming call display method and terminal device | |
US20230070358A1 (en) | File Sharing Method, System, and Related Device | |
WO2021052204A1 (en) | Address book-based device discovery method, audio and video communication method, and electronic device | |
WO2022037480A1 (en) | Task processing method and related electronic device | |
EP4293997A1 (en) | Display method, electronic device, and system | |
US20230418630A1 (en) | Operation sequence adding method, electronic device, and system | |
WO2020192716A1 (en) | System language switching method and related apparatus | |
EP4287014A1 (en) | Display method, electronic device, and system | |
WO2020062014A1 (en) | Method for inputting information into input box and electronic device | |
WO2020216144A1 (en) | Method for adding mail contact, and electronic device | |
CN114064160A (en) | Application icon layout method and related device | |
CN114664306A (en) | Method, electronic equipment and system for editing text |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20795502 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20795502 Country of ref document: EP Kind code of ref document: A1 |