Method and electronic device for displaying social information
Patent Information
- Application Number
- CN202410081377.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-19
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2044-01-19
AI Technical Summary
当用户B拥有多个社交账号时,需要切换到不同社交账号对应的即时通讯应用程序中,导致操作繁琐,添加效率不高
[0038]Fifthly, embodiments of this application provide a computer program product that, when run on a communication device, causes the communication device to perform a method for displaying social information as described in the first aspect or any possible implementation thereof.
Smart Images

Figure CN120390000B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and more particularly to a method and electronic device for displaying social information. Background Technology
[0002] With the widespread use of electronic devices (such as mobile phones) and the development of communication technology, various social applications have emerged. As users have more and more social accounts, their ways of socializing have also changed. In addition to traditional social methods such as adding phone numbers, adding social accounts corresponding to social applications has become an increasingly important way of socializing.
[0003] Currently, if user A wants to add user B's social media account, the electronic device first responds to the user's action in the instant messaging application corresponding to that social media account, and then searches for and adds user B's social media account within that instant messaging application. When user B has multiple social media accounts, they need to switch between the instant messaging applications corresponding to each account, resulting in a cumbersome process and low efficiency in adding the account. Summary of the Invention
[0004] This application provides a method and electronic device for displaying social information, which enables users to quickly and conveniently obtain media and social information corresponding to different instant messaging applications, thereby improving the efficiency of users in obtaining information.
[0005] In a first aspect, this application provides a method for displaying social information, applied to a first electronic device, the first electronic device having an instant messaging application installed, the method comprising:
[0006] Displaying a first interface of a first application, the first interface including a first option, the first application for managing one or more contacts, the first option for providing functions related to the instant messaging application of a first user, the first user being one of the one or more contacts;
[0007] In response to a user action on the first option, a first page is displayed, the first page including a first control;
[0008] In response to a user operation on the first control, obtain the media and social information corresponding to the instant messaging application of the first user;
[0009] The second interface corresponding to the first option is displayed. The second interface displays a first information identification code carrying the media social information of the first user. The first information identification code is used to provide the media social information of the first user to the second electronic device and / or the second user.
[0010] In the above method, the first application is a system application of the first electronic device, and the instant messaging application is a third-party application of the first electronic device, which can be used to provide a platform for communication and exchange. When the first user has multiple instant messaging applications, that is, when using the media and social information (including username and user account) corresponding to multiple instant messaging applications, the social information corresponding to the first user's instant messaging applications can be obtained through the first option provided by the first application. Therefore, a first information identification code carrying the media and social information of the first user can be generated through the first option provided by the first application. In this way, the media and social information corresponding to the multiple instant messaging applications owned by the first user can be displayed in the first application, thereby facilitating other users or other devices to add the first user's accounts in different instant messaging applications. This avoids switching back and forth between instant messaging applications and improves the efficiency of adding accounts.
[0011] In one possible implementation, the second electronic device is equipped with the instant messaging application, and the first information identification code is used to provide the second electronic device with information to display a third interface, which is the add page of the first user in the instant messaging application.
[0012] In the above method, the first information identification code can be displayed in the first option of the first application. Therefore, the second electronic device can add the first user in the corresponding instant messaging application through the first information identification code provided by the first application. When the first user has many instant messaging applications, the information identification code provided by the first option of the first application can be used to quickly add users.
[0013] In one possible implementation, the second electronic device includes the first application, and the first information identification code is used to provide the second electronic device with information to display a fourth interface, which is the add page of the first user in the first application.
[0014] In the above method, the first information identification code provided by the first option of the first application supports the second electronic device to scan and add it to the first application of the second electronic device, that is, the first information identification code of the first user can be shared with other devices or other users.
[0015] In one possible implementation, when the first electronic device logs into the instant messaging application, the first electronic device synchronizes the media and social information corresponding to the instant messaging application of the first user to a second application, and the second application is used to manage the instant messaging application.
[0016] In one possible implementation, the step of obtaining the media and social information corresponding to the instant messaging application in response to a user operation on the first control includes:
[0017] In response to a user operation on the first control, the system retrieves media and social information corresponding to the instant messaging application from the second application.
[0018] In the above method, the first user is the device owner, and the second application is the system application. The device owner's media and social information can be automatically synchronized to the first application through the second application without the need for user intervention, thus reducing implementation steps and improving efficiency.
[0019] In one possible implementation, the response to a user action on the first control further includes:
[0020] A pop-up card is displayed, which includes a prompt message. The prompt message is used to remind the user to download and log in to the instant messaging application.
[0021] As can be seen, when information retrieval fails, the user can be prompted with the reason for the failure, which facilitates a timely response and improves processing efficiency.
[0022] In one possible implementation, the first electronic device includes a second control for providing a barcode scanning function, and the method further includes:
[0023] In response to a user operation on the second control, a second information identification code is obtained based on the scanning function;
[0024] Obtain the media and social information corresponding to the second user's instant messaging application from the second information identification code;
[0025] The instant messaging application is launched based on the media social information, and the first add page of the second user in the instant messaging application is displayed. The first add page includes add controls.
[0026] In response to a user action on the add control of the first add page, the second user is added as a contact in the instant messaging application.
[0027] In the above method, the first electronic device can scan the second information identification code provided by other electronic devices, thereby adding friends in the instant messaging application corresponding to the second information identification code, thus improving the speed of adding friends.
[0028] In one possible implementation, the first electronic device includes a second control for providing a barcode scanning function, and the method further includes:
[0029] In response to a user operation on the second control, a second information identification code is obtained based on the scanning function;
[0030] Obtain the media and social information corresponding to the second user's instant messaging application from the second information identification code;
[0031] The first application is launched based on the media social information, and the second user's second add page in the first application is displayed. The add page includes add controls.
[0032] In response to a user action on the add control of the second add page, the media and social information corresponding to the second user's instant messaging application is added to the second user's contact options in the first application.
[0033] In the above method, the first electronic device can scan the second information identification code provided by other electronic devices, add the second information identification code to the first application of the first electronic device, and add the media and social information of the instant messaging application corresponding to the second information identification code.
[0034] Secondly, an electronic device is provided in the embodiments of this application, the electronic device comprising: one or more processors; a memory; wherein the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform the method of displaying social information described in the first aspect or any possible implementation of the first aspect.
[0035] Thirdly, this application provides a chip or chip system including at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit. The at least one processor is used to run a computer program or instructions to execute the method for displaying social information described in the first aspect or any possible implementation thereof. The communication interface in the chip can be an input / output interface, pins, or circuits, etc.
[0036] In one possible implementation, the chip or chip system described above in the embodiments of this application further includes at least one memory, which stores instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).
[0037] Fourthly, embodiments of this application provide a computer storage medium storing a computer program that, when executed by a processor, causes the computer to perform a method for displaying social information as described in the first aspect or any possible implementation thereof.
[0038] Fifthly, embodiments of this application provide a computer program product that, when run on a communication device, causes the communication device to perform a method for displaying social information as described in the first aspect or any possible implementation thereof.
[0039] It should be understood that the descriptions of technical features, technical solutions, beneficial effects, or similar language in this application do not imply that all features and advantages can be achieved in any single embodiment. Rather, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution, or beneficial effect is included in at least one embodiment. Therefore, the descriptions of technical features, technical solutions, or beneficial effects in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions, and beneficial effects described in this embodiment can be combined in any suitable manner. Those skilled in the art will understand that embodiments can be implemented without one or more specific technical features, technical solutions, or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects may be identified in specific embodiments that do not embody all embodiments. Attached Figure Description
[0040] The accompanying drawings used in the embodiments of this application are described below.
[0041] Figures 1A-1C This application provides a set of user interfaces for displaying social information in a contact application.
[0042] Figure 2 This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application;
[0043] Figure 3 An exemplary schematic diagram of the software architecture of an electronic device 100 is shown;
[0044] Figures 4A-4G An example is provided that displays a user interface containing an information identification code;
[0045] Figures 5A-5D A user interface for adding / recognizing information identification codes is provided;
[0046] Figures 6A-6D This application provides a user interface for sharing information identification codes.
[0047] Figures 7A-7C This is a schematic diagram of a process for displaying social information provided in an embodiment of this application. Detailed Implementation
[0048] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.
[0049] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0050] The term "user interface (UI)" used in the specification, claims, and drawings of this application refers to the medium through which an application or operating system interacts and exchanges information with the user. It converts information from its internal form to a form acceptable to the user. The user interface of an application is source code written in a specific computer language such as Java or Extensible Markup Language (XML). This source code is parsed and rendered on the terminal device, ultimately presenting user-recognizable content such as images, text, and buttons. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, images, and text. The attributes and content of controls in the interface are defined using tags or nodes, such as XML tags. <textview> 、 <imgview> 、 <videoview>Nodes define the controls contained in the interface. A node corresponds to a control or property in the interface, and after parsing and rendering, the node is presented as the content visible to the user. In addition, many applications, such as hybrid applications, often contain web pages within their interfaces. A web page, also known as a webpage, can be understood as a special control embedded in the application interface. Web pages are source code written in a specific computer language, such as Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), JavaScript (JS), etc. Web page source code can be loaded and displayed as user-readable content by a browser or a web page display component with browser-like functionality. The specific content contained in a webpage is also defined through tags or nodes in the webpage source code; for example, HTML uses tags or nodes to define the content. 、 、 <video> 、 <canvas>To define the elements and attributes of a webpage.
[0051] The most common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0052] Figures 1A-1C This application provides a set of user interfaces for displaying social information in a contact application.
[0053] Figure 1A This is the main interface of a contact application provided in this embodiment of the application. The main interface 111 can be the interface corresponding to the contact options, including a group control 101, a contact card control 102, and a "My Contact Cards" control 103, as well as controls for one or more contacts. The group control 101 includes options under which the contacts are grouped. If user A (i.e., the user of this device) wants to view or edit their social information, they can click the contact card control 102. The electronic device 100 responds to user operations (such as clicks) on the contact card control 102 by displaying... Figure 1B The interface shown.
[0054] exist Figure 1B The interface 112 shown includes multiple pieces of social information about user A, such as: phone number (mobile and / or landline number), email address, company website, address, etc. User A can edit and update their social information using the editing controls in interface 112.
[0055] For example, if user A wants to provide or display their social information to other users (such as user B) so that other users can quickly add user A's social information, user A can click […]. Figure 1A The My Business Card Holder control 102 is shown. The electronic device 100 responds to... Figure 1A The user operations (such as click operations) of the My Business Cards control 102 shown are displayed as follows: Figure 1C The interface shown.
[0056] exist Figure 1C The interface 113 shown includes user A's social information and an information identification code 1131 carrying the social information. The social information can be... Figure 1B The social information in interface 112 shown here. The information identification code is an image formed according to encoding rules, such as a QR code or barcode. Information identification code 1131 carries multiple pieces of social information about user A, which can be scanned and identified by other devices (such as a second electronic device) to obtain the information carried by information identification code 1131. For example, when the second electronic device recognizes the image containing information identification code 1131, it can automatically create a contact option for user A and add multiple pieces of user A's social information under that option.
[0057] However, electronic devices have a variety of instant messaging applications, meaning that user A may have multiple social media accounts. Currently, the social information provided by the address book applications of electronic devices only includes traditional social information such as phone numbers (mobile and / or landline numbers), email addresses, company websites, and addresses. Therefore, electronic devices can only quickly add the above-mentioned traditional social information through address book applications, and cannot add the social media accounts corresponding to instant messaging applications. As a result, it can no longer meet the growing social needs.
[0058] Based on this, this application provides a method for displaying social information, applied to an electronic device that has an instant messaging application installed. The electronic device displays a first interface of a first application, the first interface including a first option, the first application being used to manage one or more contacts. Exemplarily, the first application may be a contact list application. The first option is a function related to the instant messaging application provided by the first application, such as storing media and social information of a first user's instant messaging application, where the first user is one of the one or more contacts.
[0059] In response to a user operation on a first option, the electronic device displays a first page, which includes a first control. In response to a user operation on the first control, the electronic device obtains the media and social information corresponding to the first user's instant messaging application. Therefore, the media and social information corresponding to the first user's instant messaging application can be synchronized to the first option of the first application. The electronic device can display a second interface of the first application, which displays a first information identification code carrying the first user's media and social information. The first information identification code is used to provide the media and social information of the first user's instant messaging application to a second electronic device and / or a second user. It is understood that the electronic device 100 can add the media and social information of multiple instant messaging applications of the first user to the first option. Thus, the electronic device 100 can provide the media and social information of multiple instant messaging applications of the first user to the second electronic device and / or the second user through the first option of the first application, so that the second electronic device and / or the second user can add the first user in the corresponding instant messaging application, improving operational convenience.
[0060] In one implementation, the second electronic device can scan the first information identification code. If an instant messaging application is installed on the second electronic device, and in response to a user operation that opens the instant messaging application, the second electronic device can launch the instant messaging application and display the first user's add page in the instant messaging application.
[0061] In one implementation, the second electronic device can scan the first information identification code to obtain the media and social information of the first user's instant messaging application carried by the first information identification code, and add the media and social information of the first user's instant messaging application to the contact options of the first user in the first application of the second electronic device.
[0062] First, the electronic device in this application embodiment can be a smart screen device, a smart TV (TV), a mobile phone, a tablet computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), a wearable device (such as a smartwatch, a smart bracelet), and other devices with display functions. This application embodiment does not impose any special restrictions on the specific form of the electronic device.
[0063] For example, taking a mobile phone as an electronic device, Figure 2 This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application. That is, exemplary, Figure 2 The electronic device shown could be a mobile phone.
[0064] like Figure 2 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0065] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0066] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0067] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0068] The processor 110 may also include a memory for storing instructions and data. In one embodiment, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0069] The charging management module 140 receives charging input from the charger. The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In another embodiment, the power management module 141 can also be located in the processor 110. In another embodiment, the power management module 141 and the charging management module 140 can also be located in the same device.
[0070] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0071] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In another embodiment, the antenna can be used in conjunction with a tuning switch.
[0072] The mobile communication module 150 can provide wireless communication solutions for applications on the electronic device 100, including second-generation (2G), third-generation (3G), fourth-generation (4G), fifth-generation (5G), and sixth-generation (6G) mobile communication technologies. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In one embodiment, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In another embodiment, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0073] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In one embodiment, the modem processor may be a separate device. In another embodiment, the modem processor may be independent of the processor 110 and housed within the same device as the mobile communication module 150 or other functional modules.
[0074] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0075] In one embodiment, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0076] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0077] The display screen 194 is used to display images, videos, user interfaces, controls, windows, etc. In one implementation, the display screen 194 is used to display an information identification code obtained by a method for displaying social information provided in this application. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In one embodiment, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0078] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0079] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and color. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In one implementation, the ISP can be integrated into the camera 193.
[0080] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In one embodiment, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0081] Camera 193 may include one or more of the following: telephoto camera, wide-angle camera, ultra-wide-angle camera, zoom camera, or depth camera, etc. Among them, a telephoto camera has a small shooting range and is suitable for shooting distant objects; a wide-angle camera has a large shooting range; an ultra-wide-angle camera has a larger shooting range than a wide-angle camera and is suitable for shooting panoramic or other large-scale scenes. A depth camera can be used to measure the distance to the object being photographed, that is, to measure the depth information of the object being photographed. For example, it may include a 3D depth-sensing camera, a time-of-flight (TOF) depth camera, or a binocular depth camera, etc.
[0082] The camera 193 may include a main camera and a secondary camera. The main camera can be used to capture images, and may include, for example, a telephoto camera, a wide-angle camera, an ultra-wide-angle camera, or a zoom camera. The secondary camera can be used for ranging or other auxiliary functions, and may include, for example, a depth camera.
[0083] Camera 193 may include a front-facing camera and / or a rear-facing camera. The front-facing camera may include one or more main cameras, and the rear-facing camera may also include one or more main cameras. When capturing an image, the target main camera used by the electronic device to acquire the image can be a default main camera or a main camera selected by the user. This application embodiment does not limit the specific location and shape of camera 193. In this application embodiment, when the electronic device 100 responds to a user operation to perform scanning processing, it can use the front-facing or rear-facing camera 193 to acquire the image to be recognized, and process the image acquired by the camera 193 into a preview image stream for display on the scanning preview interface, etc.
[0084] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0085] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.
[0086] Electronic device 100 can implement audio functions through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0087] Audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. Audio module 170 can also be used for encoding and decoding audio signals.
[0088] The loudspeaker 170A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.
[0089] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.
[0090] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.
[0091] The 170D headphone jack is used to connect wired headphones.
[0092] Pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In one embodiment, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In one embodiment, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands.
[0093] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In one embodiment, the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 180B.
[0094] The 180C barometric pressure sensor is used to measure barometric pressure.
[0095] 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 cover.
[0096] The accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes).
[0097] Distance sensor 180F is used to measure distance.
[0098] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from a nearby object. When sufficient reflected light is detected, it can be determined that an object is near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that no object is near the electronic device 100.
[0099] The 180L ambient light sensor is used to detect ambient light intensity.
[0100] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0101] The 180J temperature sensor is used to detect temperature.
[0102] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0103] The bone conduction sensor 180M can acquire vibration signals.
[0104] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0105] Motor 191 can generate vibration alerts. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card.
[0106] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. For example, a layered architecture software system can be the Android system, the Harmony operating system (OS), or other software systems, or a system jointly constructed by multiple software systems. This application embodiment uses the layered architecture Android system as an example to illustrate the software structure of electronic device 100.
[0107] Figure 3 An exemplary schematic diagram of the software architecture of an electronic device 100 is shown.
[0108] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In one implementation, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0109] The application layer can include a series of application packages.
[0110] like Figure 3 As shown, the application package may include applications such as camera, messages, files, memos, contacts, settings, calls, instant messaging, and Bluetooth. The applications in this application can also be replaced with other software such as mini-programs or atomic services.
[0111] The settings application includes various functions and options that can be used to adjust the appearance and behavior of electronic devices, including network options, notification settings, sound and vibration settings, screen brightness and backlight settings, application settings, user and account settings, and so on.
[0112] Instant messaging applications, also known as social media applications, include software that enables online chat and communication through instant messaging technology. The user and account settings within the settings application allow you to manage the social media accounts and users associated with the instant messaging application.
[0113] A contact list application includes multiple contacts and their corresponding social information. Social information includes traditional social information and media social information. Traditional social information includes phone numbers (mobile and / or landline numbers), email addresses, company websites, addresses, etc., while media social information includes social media accounts associated with instant messaging applications.
[0114] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0115] like Figure 3 As shown, the application framework layer may include a window manager (WM), content providers, a view system, a resource manager, an input manager, a notification manager, etc.
[0116] The window manager is used to manage window programs. The window manager can obtain the screen size and screen appearance, determine whether the screen appearance mode is dark or light mode, whether there is split screen, floating windows, status bar, screen lock, screen capture, etc.
[0117] Content providers are used to store and retrieve data, making that data accessible to applications. This data may include files, folders, text, videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0118] A view system includes visual controls, such as text controls for displaying text and image controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a contact icon can include a view displaying text and a view displaying images. Exemplarily, an interface including traditional social information can include a view displaying the text corresponding to the traditional social information and a view displaying a first information identification code; an interface including media social information can include a view displaying the text corresponding to the media social information and a view displaying a second information identification code. The first information identification code carries traditional social information, and the second information identification code carries media social information.
[0119] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0120] The input module is used to obtain the raw input events (including touch coordinates, timestamps of touch operations, etc.) corresponding to touch operations from the kernel layer and identify the control corresponding to the input event.
[0121] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, and flashing indicator lights.
[0122] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0123] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0124] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0125] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), rendering modules, etc.
[0126] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0127] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0128] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0129] A 2D graphics engine is a graphics engine for 2D drawing.
[0130] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0131] The following example illustrates the workflow of the software and hardware of electronic device 100.
[0132] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the input event.
[0133] In one implementation, assuming the touch operation is a single click, and the corresponding control is, for example, a control in the interface of a contacts application used to add a social application, the contacts application can call the application framework layer interface to obtain the username and social account of the social application from various resources stored in the resource manager. Then, the electronic device detects the user's operation on the creation control in the contacts application interface via the screen, calls the view system to create a view including a second information identification code, and then controls the display driver through the kernel layer to display the view including the second information identification code on the display screen 194. The second information identification code carries the social username and social account of the social application obtained in response to the control for adding the social application.
[0134] In one implementation, if the touch operation is a single click, and the corresponding control is, for example, a QR code scanning control in an application's interface used to initiate the scanning function, the application can call the camera process, for example, by calling the application framework layer's interface, and then start the camera process through the kernel layer's camera driver. The electronic device 100, through user touch / click / long-press operations on the QR code scanning control detected on the screen, or other operations that can trigger the image acquisition process, then starts the camera process, such as a camera service, calls the camera to acquire an image including the second information identification code, thereby acquiring the media social information carried by the second information identification code, opening the social application software corresponding to the media social information and / or adding the aforementioned media social information to the address book application.
[0135] The following describes the application scenarios involved in the embodiments of this application and examples of user interfaces in those scenarios.
[0136] In scenario one, when electronic device 100 displays the first user interface of a first application (such as a contacts application), it receives an input event to trigger the display of an information identification code. At this time, electronic device 100 can display an interface containing the information identification code.
[0137] Figures 4A-4G An example is provided that displays a user interface containing an information identification code. Wherein:
[0138] Figure 4A This is the main interface of an electronic device provided in an embodiment of this application. For example... Figure 4A As shown, the main interface 300 may include a status bar 301, a page indicator 302, and multiple application icons.
[0139] The status bar 301 may include one or more signal strength indicators for mobile communication signals (also known as cellular signals), wireless fidelity (Wi-Fi) signal strength indicators, battery status indicators, time indicators, etc.
[0140] Page indicator 302 can be used to indicate the positional relationship between the currently displayed page and other pages.
[0141] Multiple application icons may include a settings application icon 113A, an app store application icon 113B, a browser application icon 113C, an instant messaging application icon 113D, a gallery application icon 113E, a camera application icon 113F, a contacts application icon 113G, a phone application icon, a messaging application icon, etc. Not limited to the above icons, the main interface 113 may also include other application icons, which will not be listed here. Multiple application icons can be distributed across multiple pages. A page indicator 312 can be used to indicate which of the multiple pages hosting the multiple applications the user is currently viewing. Users can browse other pages using left and right swipe touch operations.
[0142] Instant messaging applications, also known as social media applications, include software that enables online chat and communication through instant messaging technology. Instant messaging applications allow for quick communication with others, and users can send text, pictures, videos, audio, files, and more, depending on the application's functionality.
[0143] Understandable. Figure 4A The user interface described below is merely an illustrative example of a possible user interface style for an electronic device, taking a mobile phone as an example, and should not be construed as limiting the embodiments of this application.
[0144] For example, the electronic device 100 has various instant messaging applications installed. After creating a username and account for an instant messaging application, the username and account can be synchronized to the settings application. In one implementation, the username and account of the instant messaging application can be stored under the "Users and Accounts" option in the settings application of the electronic device 100. If the user wants to view the stored username and account of the instant messaging application, they can click... Figure 4A The settings application icon 113A is shown in the main interface 300. In response to a user operation on the settings application icon 113A (e.g., a touch operation), the electronic device 100 displays as shown... Figure 4B The interface shown is 310.
[0145] Figure 4B The interface 310 shown is the main interface for setting up the application, including controls for logging in to the XX account, wireless and network controls, device connection controls, application and notification controls, user and account controls, display controls, sound controls, storage controls, etc. The electronic device 100 responds to user operations on the user and account controls by displaying... Figure 4C The interface shown is 311. Figure 4C Interface 311 shown is the page corresponding to users and accounts, including the currently logged-in user account (for example, user A's account) and personal user accounts. User A can be a local user, that is, the user of the electronic device. The personal user account includes users and accounts corresponding to multiple instant messaging applications, such as the users and accounts corresponding to Instant Messaging 1, Instant Messaging 2, Instant Messaging 3, Instant Messaging 4, Instant Messaging 5, and Instant Messaging 6 respectively. The user corresponding to Instant Messaging includes the username (name), user avatar, etc., displayed in the instant messaging application, and the account corresponding to Instant Messaging includes the account number that can log in to the instant messaging application, etc. For example, Instant Messaging 1 includes username 1 and account number 12345. Searching for username 1 and / or account number 12345 in Instant Messaging 1 will find the corresponding user.
[0146] For example, if a user wants to update / edit their media and social information in the contacts application, they can click... Figure 4A The contact application icon 113G is shown in the main interface 300. The electronic device 100 responds to... Figure 4A The user operation of the Contacts application icon 113G in the interface shown is as follows: Figure 4D The interface shown is 320.
[0147] Figure 4D The interface 320 shown is the contacts interface in the address book application, including group controls, contact card controls, My Contact Cards control 321, My Social Cards control 322, and controls for one or more contacts. Among them, the options corresponding to My Contact Cards control 321 include the user's traditional social information, such as phone number (mobile and / or landline number), email, company website, address, etc. For a description of My Contact Cards control 321, please refer to [reference needed]. Figures 1A-1C The relevant descriptions in the document will not be repeated here. Under the details corresponding to my social card control 322, it includes the user's media social information. For example, media social information may include... Figure 4C The instant messaging user and account shown in interface 311. The electronic device responds to... Figure 4D The user actions of the social card control 322 in the interface shown are as follows: Figure 4E Interface 330 is shown. Figure 4E The interface 330 shows an instant messaging application and its corresponding viewing control 331 or link control 332. The link control 332 is used to indicate that the user and account corresponding to the instant messaging application have not yet been synchronized to the "My Social Cards" option in the Contacts application, and the viewing control 331 is used to indicate that the user and account corresponding to the instant messaging application have been synchronized to the "My Social Cards" option in the Contacts application.
[0148] For example, from Figure 4E As can be seen, Instant Messenger 1 corresponds to View control 331, indicating that the user and account corresponding to Instant Messenger 1 have been synchronized to the "My Social Cards" option. Instant Messenger 2, Instant Messenger 3, Instant Messenger 4, and Instant Messenger 7 correspond to Link controls 332 respectively, indicating that the users and accounts corresponding to Instant Messenger 2, Instant Messenger 3, Instant Messenger 4, and Instant Messenger 7 have not been synchronized to the "My Social Cards" option. The electronic device 100, in response to user operations on Link controls 332 (for example, Link controls 332 corresponding to Instant Messenger 2, Instant Messenger 3, Instant Messenger 4, and Instant Messenger 7), can interact with... Figure 4C The interface 311 shown synchronizes information in the instant messaging, retrieves the user and account corresponding to the instant messaging service associated with the link control 332, for example, retrieves the user and account corresponding to instant messaging service 2, instant messaging service 3, and instant messaging service 4, and displays them. Figure 4F The interface shown is 340.
[0149] In one case, because Figure 4C The interface 311 shown does not contain Instant Messaging 7, indicating that the "Users and Accounts" option in the settings application does not store the user and account of Instant Messaging 7. Therefore, when the electronic device 100 responds to the user operation of the link control 332 corresponding to Instant Messaging 7 and cannot obtain the user and account corresponding to Instant Messaging 7, it can display a pop-up message "Please download Instant Messaging 7 and log in to your account first".
[0150] exist Figure 4F In the interface 340 shown, the users and accounts corresponding to Instant Messenger 2, Instant Messenger 3, and Instant Messenger 4 have been synchronized to the "My Social Cards" option in the Contacts application. Therefore, the link controls corresponding to Instant Messenger 2, Instant Messenger 3, and Instant Messenger 4 are updated to view control 331. The electronic device 100 responds to... Figure 4E The interface 330 shown or in response to Figure 4F User operations on the viewing control 331 in the interface 340 shown, for example, in response to user operations on the viewing control 331 corresponding to instant messaging 1, can display... Figure 4G The user interface shown is 350.
[0151] exist Figure 4G The user interface 350 displays the media and social information corresponding to Instant Messaging 1, along with an information identification code 351 carrying that information. The media and social information includes the username and account link of Instant Messaging 1. For example, the account link includes Uniform Resource Locator (URL) information. A URL, also known as a web address, is a unique identifier used to locate resources on the internet. Every file on the internet has a unique URL, which contains information indicating the file's address and how the browser should handle it. Therefore, the account link of Instant Messaging 1 points to the web address of the username and account within Instant Messaging 1, and the information identification code 351 provides the address to jump to the personal page of the username and account within Instant Messaging 1. Additionally, the user interface 350 includes a sharing control 352. In response to user interaction with the sharing control 352, the electronic device 100 can share user A's media and social information from Instant Messaging 1, along with the information identification code 351 carrying that information, with other users.
[0152] Similarly, the electronic device 100 can respond to user operations on the viewing controls 331 corresponding to instant messaging 2, instant messaging 3, and instant messaging 4, respectively, and can display the media and social information corresponding to instant messaging 2, instant messaging 3, and instant messaging 4, as well as the information identification code carrying the media and social information.
[0153] It should be noted that, Figure 4E The interface shown is 330 or Figure 4F The interface 340 shown also includes all controls 333, and under the options corresponding to all controls 333 are synchronized media and social information for instant messaging. For example, for Figure 4E For the interface 330 shown, since only the media and social information corresponding to Instant Messaging 1 is synchronized, the electronic device 100 responds to user operations on all controls 333 by displaying an information identification code carrying the media and social information corresponding to Instant Messaging 1. For Figure 4F As shown in the interface 340, since there are media and social information corresponding to Instant Messenger 1, Instant Messenger 2, Instant Messenger 3 and Instant Messenger 4, the electronic device 100 responds to the user operation on all controls 333 by displaying an information identification code that carries the media and social information corresponding to Instant Messenger 1, Instant Messenger 2, Instant Messenger 3 and Instant Messenger 4 respectively.
[0154] Understandably, when a user logs into Instant Messaging 1, the username and account used to log in to Instant Messaging 1 can be automatically added to the "Users and Accounts" option in the settings application. Then, through the My Social Card function provided by the Contacts application, the username and account corresponding to Instant Messaging 1 can be synchronized to the Contacts application. Therefore, the Contacts application in electronic device 100 can provide the user's media and social information, namely the user's username and account in various instant messaging applications, through My Social Card.
[0155] Scenario 2: When the electronic device displays the second user interface of a second application (such as a QR code scanning application), it receives an input event to trigger the QR code scanning function. At this time, the electronic device 100 can display an interface for adding / recognizing information identification codes.
[0156] Figures 5A-5D A user interface for adding / recognizing information identification codes is provided. Among them:
[0157] Figure 5A This application provides a user interface for scanning a barcode information identification code. An application that provides barcode scanning functionality is installed in the electronic device 100. When the electronic device 100 activates the barcode scanning control in the interface of this application to initiate the scanning function, it displays... Figure 5A The user interface 510 is shown. In the user interface 510, the electronic device 100 uses a rear-facing camera to capture a first image containing the information identification code 511 of user B. After scanning and recognizing the media and social information of user B carried by the information identification code 511, it can display... Figure 5B The user interface 520 is shown. The user B's identification code 511 can be generated by user B in the "My Social Card" section of the contact application on the electronic device. For details on how user B's identification code 511 is generated, please refer to... Figures 4A-4G The method for generating the information identification code 351 for user A will not be described here.
[0158] exist Figure 5B The user interface 520 shown includes a pop-up card 512. The pop-up card 512 displays the prompt message "Media and social information corresponding to User B's instant messaging 1", a save control 5122, and a jump control 5121. If the user wants to save the media and social information corresponding to User B's instant messaging 1, they can click the save control 5122. In response to the user's operation on the save control 5122, the electronic device 100 can display... Figure 5C The user interface shown is 530.
[0159] exist Figure 5C The user interface 530 displays user B's media and social information (including the username and account link of Instant Messaging 1) and an information identification code 511 carrying the media and social information. In response to an operation on the save control 531, the electronic device 100 adds user B's media and social information to the contact user B if the contact user B exists in the address book application. If the contact user B does not exist in the address book application, a new contact user B is created, and user B's media and social information is added to the contact user B. If the contact user B exists in the address book application, and user B's media and social information also exists, user B's media and social information is updated.
[0160] If a user wants to add User B's social media account in Instant Messaging 1, they can click on the jump control 5121, and the electronic device 100 will respond accordingly. Figure 5B User operation of the jump control 5121 in the user interface 520 shown, or electronic device response to Figure 5C The user operation of "Instant Messaging 1 Account Link" in the user interface 530 shown can be displayed on the electronic device 100. Figure 5D The user interface shown is 540.
[0161] Figure 5D The user interface 540 shown is the add page for user B in Instant Messaging 1. Figure 5D The user interface 540 shows user B's avatar, username CCC, and account name DDDDDD in instant messaging 1, as well as an add control 541. In response to a user action on the add control 541, electronic device 100 can add user B as a friend in instant messaging 1.
[0162] Scenario 3: The electronic device displays the third user interface of the first application (such as the contacts application) and receives an input event from the user that triggers the sharing function. At this time, the electronic device 100 can share the information identification code with other users.
[0163] Figures 6A-6D This is a user interface for sharing information identification codes provided in an embodiment of this application. Wherein:
[0164] Figure 6A This application provides a contact interface 610 in an address book application, including a group control, a business card control, a "My Business Cards" control, a "My Social Cards" control, and controls for one or more contacts (e.g., contact B). The electronic device 100, in response to a user accessing the contact B control 611, can display... Figure 6B The interface shown is 620.
[0165] exist Figure 6B The interface 620 shown includes user B's control for viewing contact cards, control for viewing social cards 621, phone number, email address, company website, address, and other information.
[0166] The contact card viewer control provides user B's traditional social information, which can be obtained by scanning an information identification code carrying user B's traditional social information using electronic device 100. The social card viewer control 621 provides user B's instant messaging media social information, which can also be obtained by scanning an information identification code carrying user B's media social information using electronic device 100. In response to a user operation on the social card viewer control 621, electronic device 100 can display... Figure 6C The interface shown is 630.
[0167] exist Figure 6C The interface 630 shown includes different instant messaging services under the social card option added to contact user B, and their corresponding viewing controls. For example, there are viewing controls 631 for instant messaging 1, instant messaging 2, instant messaging 3, instant messaging 4, and instant messaging 5, and a control 633 for all instant messaging services. The electronic device 100, in response to the viewing control 631 corresponding to user B's instant messaging service, can display the corresponding media and social information. For example, in response to user B's user action on the viewing control 631 corresponding to instant messaging 1, the electronic device 100 can display... Figure 6D The user interface shown is 640.
[0168] exist Figure 6D The user interface 640 shown displays the media social information corresponding to user B's instant messaging 1, as well as an information identification code 511 carrying that media social information. The method for obtaining the media social information corresponding to user B's instant messaging 1 and the information identification code 511 carrying that media social information can be found in [reference needed]. Figures 5A-5D The media and social information includes user B's username CCC and account link DDDD in instant messaging 1. For example, the account link includes Uniform Resource Locator (URL) information, also known as a web address, which is a unique identifier used to locate resources on the Internet. Every file on the Internet has a unique URL, which contains information indicating the file's address and how the browser should handle it. Therefore, the account link in instant messaging 1 is used to point to the web address of user B's username and account in instant messaging 1, and the information identification code 511 can provide the address to jump to the personal page of user B's username and account in instant messaging 1. The user interface 640 also includes a sharing control 641. In response to user operation on the sharing control 641, the electronic device 100 can share user B's media and social information and the information identification code 511 carrying the media and social information with other users.
[0169] Similarly, it can be seen that electronic device 100 responds to Figure 4C The user operations of the viewing controls 631 corresponding to Instant Messaging 2, Instant Messaging 3, Instant Messaging 4 and Instant Messaging 5 of user B in the interface 630 shown can respectively display the media and social information corresponding to Instant Messaging 2, Instant Messaging 3, Instant Messaging 4 and Instant Messaging 5 and the information identification code carrying the media and social information.
[0170] Therefore, electronic device 100 can provide user B with various media social information through My Social Card in the address book application, making it easy to share user B's media social information with third parties.
[0171] The following is a method for displaying social information provided in the embodiments of this application.
[0172] Please see Figures 7A-7C , Figures 7A-7C This is a schematic flowchart illustrating a method for displaying social information provided in an embodiment of this application. This method can be applied to... Figure 2 The electronic device 100 shown and Figure 3 The electronic device 100 shown. The method includes, but is not limited to, the following steps:
[0173] Step S701: The first electronic device displays the first interface of the first application.
[0174] The first electronic device has one or more instant messaging applications installed.
[0175] In one implementation, the first application is used to manage one or more contacts. The first application can be a contact application, and the first interface can be the user interface of the contact application, for example... Figure 4D The user interface 320 shown.
[0176] In one implementation, the first user is one of one or more contacts, for example, the first user is... Figures 4E-4G User A in the middle, or, the first user is Figures 6A-6D User B in the middle.
[0177] In one implementation, the first interface may include a first option, which provides functionality related to the first user's instant messaging application. For example, the first option may be... Figure 4D The "My Social Card" option in the user interface 320 shown, or the first option, could be... Figure 6B The "View Social Cards" option in the user interface 620 shown.
[0178] Step S702: The first electronic device displays the first page in response to a user operation on the first option.
[0179] In one possible implementation, the first page includes one or more instant messaging applications for the first user, and a first control corresponding to each instant messaging application. For example, the first page could be... Figure 4E The user interface 330 shown can have the first control as follows: Figure 4E The link control 332 in the user interface 330 shown.
[0180] Step S703: The first electronic device responds to the user operation on the first control and obtains the media social information corresponding to the first user's instant messaging application.
[0181] Specifically, if a user wants to add their instant messaging media and social information under the first option of the first application, they can click the first control corresponding to that instant messaging application. The first electronic device, responding to the user's operation on the first control, can retrieve the media and social information corresponding to the instant messaging application. For example, the first electronic device, in response to... Figure 4E User operation of the link control 332 corresponding to instant messaging 2 in the user interface 330 shown can obtain the media and social information corresponding to the first user's instant messaging 2; the first electronic device responds to the user's instant messaging 2. Figure 4E The user operation of the link control 332 corresponding to the instant messaging 4 in the user interface 330 shown can obtain the media and social information corresponding to the instant messaging 4 of the first user.
[0182] In one possible implementation, when a first electronic device logs into an instant messaging application using a first user's username and account information, the first electronic device can synchronize the first user's username and account information to a second application. The second application manages one or more instant messaging applications; for example, the second application could be... Figure 4A The settings application in the user's main interface 300, as shown, synchronizes the user's instant messaging application's username, user account, and other media and social information to... Figure 4B and Figure 4C In the "Users and Accounts" option of the user interface shown.
[0183] In one implementation, the user selects an instant messaging application to add / link. A first electronic device responds to the user's action on a first control corresponding to that instant messaging application. If a second application stores media and social information corresponding to that instant messaging application, then the media and social information is retrieved from the second application. For example, from... Figure 4C and Figure 4E It can be seen that the "Users and Accounts Options" of the settings application stores the media and social information corresponding to Instant Messaging 1, Instant Messaging 2, Instant Messaging 3 and Instant Messaging 4.
[0184] In one implementation, if the second application does not store the media and social information corresponding to the instant messaging application, for example from... Figure 4C and Figure 4E It is known that the "Users and Accounts Options" of the settings application do not store the media and social information corresponding to Instant Messaging 7. Therefore, the first electronic device displays a pop-up card, which includes a prompt message. This prompt message is used to remind the user to download and log in to the instant messaging application.
[0185] Step S704: The first electronic device displays the second interface corresponding to the first option.
[0186] The second interface displays a first information identification code carrying the media and social information of the first user. This first information identification code is used to provide the first user's media and social information to the second electronic device and / or the second user. For example, the first information identification code could be... Figure 4G The information identification code 351 in the user interface 350 shown includes the URL information of the social media account.
[0187] In one possible implementation, the first page includes a second control, and the first electronic device displays a second interface corresponding to the first option in response to a user operation on the second control. For example, the second control could be media and social information of a corresponding instant messaging application, and the second interface could also be media and social information of the corresponding instant messaging application. The first electronic device responds to... Figure 4E User operation of the viewing control 331 in the user interface 330 shown, displaying Figure 4G The user interface shown is 350.
[0188] In one implementation, the first control is used to retrieve the media and social information of the corresponding instant messaging application. Once the first control has retrieved the corresponding media and social information in response to a user action, it can be updated to a second control. For example, Figure 4E The link control 332 corresponding to Instant Messaging 2, Instant Messaging 3, and Instant Messaging 4 shown is updated to... Figure 4F The view control 331 corresponding to Instant Messaging 2, Instant Messaging 3, and Instant Messaging 4 shown.
[0189] For example, the second electronic device has an instant messaging application installed. The first information identification code is used to provide the second electronic device with information to display a third interface (such as URL information). The third interface is the add page of the first user in the instant messaging application. For example, the third interface could be... Figure 5D The user interface shown is 540.
[0190] For example, the second electronic device includes a first application, and a first information identification code is used to provide information to the second electronic device to display a fourth interface, which is an add page for the first user in the first application. For instance, the fourth interface could be... Figure 5C The user interface shown is 530.
[0191] In one possible implementation, after steps S701-S704, the method further includes... Figure 7B The steps shown are as follows:
[0192] Step S705: The first electronic device responds to the user's operation on the second control and obtains the second information identification code based on the barcode scanning function.
[0193] Specifically, the first electronic device includes a second control for providing a barcode scanning function. For example, in response to a user operation on the second control, the first electronic device displays, as shown in the image. Figure 5A The user interface 510 shown obtains a second information identification code based on the barcode scanning function, for example... Figure 5A The information identification code 511 is shown. It can be understood that the second information identification code is provided by the first application of the second electronic device, and the second electronic device can generate the second information identification code in the first application according to steps S701-S705.
[0194] Step S706: The first electronic device obtains the media and social information corresponding to the second user's instant messaging application from the second information identification code, launches the instant messaging application based on the media and social information, and displays the second user's first add page in the instant messaging application.
[0195] Specifically, when the first electronic device scans the second information identification code and obtains the media and social information corresponding to the second user's instant messaging application stored in the second information identification code, a pop-up window may be displayed asking whether to open it in the browser / instant messaging application. If the user chooses to open it, the URL of the second user's first add page in the instant messaging application is obtained from the media and social information, the instant messaging application is opened, and the second user's first add page in the instant messaging application is displayed. The first add page includes add controls.
[0196] Step S707: In response to a user operation on the add control of the first add page, the first electronic device adds a second user as a contact in the instant messaging application.
[0197] Specifically, the first electronic device can scan the second information identification code provided by the first application to jump to the add page of the corresponding instant messaging application to add a second user, so that the second user can be added directly in the instant messaging application.
[0198] Understandably, if the second electronic device can provide multiple second information identification codes through the first application, and each second information identification code corresponds to an instant messaging application, then the first electronic device can scan the multiple second information identification codes provided by the second electronic device through the first application to jump to the corresponding instant messaging application, thereby allowing the first electronic device to add the second user in the corresponding instant messaging application. This operation is convenient and improves the efficiency of adding users.
[0199] For a detailed description of steps S705-S707, please refer to the above. Figure 5A , Figure 5B and Figure 5D This will not be elaborated upon further.
[0200] In one possible implementation, after steps S701-S705, the method further includes... Figure 7C The steps shown are as follows:
[0201] Step S708: The first electronic device responds to the user's operation on the second control and obtains the second information identification code based on the barcode scanning function.
[0202] Specifically, the first electronic device includes a second control for providing a barcode scanning function. For example, in response to a user operation on the second control, the first electronic device displays, as shown in the image. Figure 5A The user interface 510 shown obtains a second information identification code based on the barcode scanning function, for example... Figure 5A The information identification code 511 is shown. It can be understood that the second information identification code is provided by the first application of the second electronic device, and the second electronic device can generate the second information identification code in the first application according to steps S701-S705.
[0203] Step S709: The first electronic device obtains the media and social information corresponding to the second user's instant messaging application from the second information identification code, launches the first application based on the media and social information, and displays the second user's second add page in the first application.
[0204] Specifically, when the first electronic device scans the second information identification code and obtains the information stored in the second information identification code, it can determine whether it is media social information corresponding to the second user's instant messaging application. If it is media social information, a pop-up window can prompt whether to add it to existing contacts. If it is added to existing contacts (such as the contacts corresponding to the second user), the first application is launched, and the second user is selected from the first application to add media social information. The second add page of the second user in the first application is displayed, and the add page contains add controls.
[0205] Step S710: In response to a user operation on the add control of the second add page, the first electronic device adds the media social information corresponding to the instant messaging application of the second user to the contact options of the second user in the first application.
[0206] Specifically, when the first electronic device scans the second information identification code provided by the first application, it can jump to the add page of the corresponding first application to add the second user. Therefore, the media and social information of the second user's instant messaging application can be added directly in the contact option of the second user in the first application.
[0207] Understandably, if the second electronic device can provide multiple second information identification codes through the first application, and each second information identification code corresponds to an instant messaging application, then the first electronic device can scan the multiple second information identification codes provided by the second electronic device through the first application to add media and social information corresponding to various instant messaging applications to the contact options of the second user in the first application. Therefore, the first electronic device can directly jump to the corresponding instant messaging application based on the URL in the saved media and social information corresponding to various instant messaging applications in the first application, thereby allowing the first electronic device to add the second user in the corresponding instant messaging application. This operation is convenient and improves the efficiency of adding users.
[0208] For a detailed description of steps S708-S710, please refer to the above. Figures 5A-5C This will not be elaborated upon further.
[0209] It should be understood that the steps in the above-described method embodiments provided in this application can be implemented by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
[0210] This application also provides an electronic device that may include a memory and a processor. The memory may be used to store a computer program; the processor may be used to invoke the computer program in the memory to cause the electronic device to perform the methods in any of the above embodiments.
[0211] This application also provides a chip system including at least one processor for implementing the functions involved in the methods performed by the electronic device in any of the above embodiments.
[0212] In one possible design, the chip system also includes a memory for storing program instructions and data, which may be located within or outside the processor.
[0213] The chip system can consist of chips or include chips and other discrete components.
[0214] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0215] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.
[0216] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0217] This application also provides a computer program product comprising: a computer program (also referred to as code or instructions) that, when run, causes a computer to perform the method executed by the electronic device in any of the above embodiments.
[0218] This application also provides a computer-readable storage medium storing a computer program (also referred to as code or instructions). When the computer program is run, it causes the computer to perform the method executed by the electronic device in any of the above embodiments.
[0219] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.
[0220] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive).
[0221] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0222] In summary, the above description is merely an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made according to the disclosure of the present invention should be included within the scope of protection of the present invention.< / canvas> < / video> < / videoview> < / imgview> < / textview>
Claims
1. A method for displaying social information, characterized in that, Applied to a first electronic device, the first electronic device having one or more instant messaging applications installed, the method includes: Displaying a first interface of a first application, the first interface including a first option, the first application being a contact application, the first application being used to manage one or more contacts, the first option being used to provide functions related to the one or more instant messaging applications of a first user, the first user being one of the one or more contacts; In response to a user action on the first option, a first page is displayed, the first page including a first control; In response to a user operation on the first control, media and social information corresponding to the first instant messaging application of the first user is obtained from the second application. The first instant messaging application is one of the one or more instant messaging applications. When the first electronic device logs into the first instant messaging application, the media and social information corresponding to the first instant messaging application is synchronized to the second application. The second application is used to manage the one or more instant messaging applications. The second interface corresponding to the first option is displayed. The second interface displays a first information identification code carrying the media social information of the first user. The first information identification code is used to provide the media social information of the first user to the second electronic device and / or the second user.
2. The method according to claim 1, characterized in that, The second electronic device is equipped with the instant messaging application. The first information identification code is used to provide the second electronic device with information to display a third interface, which is the add page of the first user in the instant messaging application.
3. The method according to claim 1 or 2, characterized in that, The second electronic device includes the first application, and the first information identification code is used to provide the second electronic device with information to display a fourth interface, which is the add page of the first user in the first application.
4. The method according to any one of claims 1-3, characterized in that, The response to the user operation on the first control further includes: A pop-up card is displayed, which includes a prompt message for the user to download and log in to the instant messaging application.
5. The method according to any one of claims 1-4, characterized in that, The first electronic device includes a second control for providing a barcode scanning function, and the method further includes: In response to a user operation on the second control, a second information identification code is obtained based on the scanning function; Obtain the media and social information corresponding to the second user's instant messaging application from the second information identification code; The instant messaging application is launched based on the media social information, and the first add page of the second user in the instant messaging application is displayed. The first add page includes add controls. In response to a user action on the add control of the first add page, the second user is added as a contact in the instant messaging application.
6. The method according to any one of claims 1-4, characterized in that, The first electronic device includes a second control for providing a barcode scanning function, and the method further includes: In response to a user operation on the second control, a second information identification code is obtained based on the scanning function; Obtain the media and social information corresponding to the second user's instant messaging application from the second information identification code; The first application is launched based on the media social information, and the second user's second add page in the first application is displayed. The add page includes add controls. In response to a user action on the add control of the second add page, the media and social information corresponding to the second user's instant messaging application is added to the second user's contact options in the first application.
7. An electronic device, characterized in that, The electronic device includes: one or more processors; a memory; wherein the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform the method as described in any one of claims 1-6.
8. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the processors being used to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1-6.
9. A computer program product containing instructions, characterized in that, When the computer program product is run on an electronic device, it causes the electronic device to perform the method as described in any one of claims 1-6.
10. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Friend adding method and device and electronic equipment
CN113300944A