WO2021135734A1 - Procédé de transmission de fichier dans une application et dispositif électronique et système - Google Patents

Procédé de transmission de fichier dans une application et dispositif électronique et système Download PDF

Info

Publication number
WO2021135734A1
WO2021135734A1 PCT/CN2020/131219 CN2020131219W WO2021135734A1 WO 2021135734 A1 WO2021135734 A1 WO 2021135734A1 CN 2020131219 W CN2020131219 W CN 2020131219W WO 2021135734 A1 WO2021135734 A1 WO 2021135734A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
user
application
electronic device
user interface
Prior art date
Application number
PCT/CN2020/131219
Other languages
English (en)
Chinese (zh)
Inventor
毕岩
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021135734A1 publication Critical patent/WO2021135734A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/04Details of telephonic subscriber devices including near field communication means, e.g. RFID
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/06Details of telephonic subscriber devices including a wireless LAN interface

Definitions

  • This application relates to the field of short-range communication and terminal technology, and in particular to methods, electronic devices and systems for transferring files in applications.
  • the electronic device when users share files through instant messaging applications, the electronic device first transmits the files to the server via the network (such as cellular network, Wireless Fidelity (Wi-Fi), etc.), and then the server forwards the file to the peer equipment.
  • the network such as cellular network, Wireless Fidelity (Wi-Fi), etc.
  • This method relies on the communication connection between the electronic device and the server, and the efficiency of file transfer will be affected when the network condition is poor.
  • the embodiments of the application provide a method, electronic device, and system for transferring files without traffic in an application, which can enable the electronic device to quickly and quickly transfer files to other surrounding devices in the application, optimize the user experience, and the file transfer process can be Do it without a network.
  • an embodiment of the present application provides a method for transferring files in an application, which is applied to a first device.
  • the method includes: a first device displays a first user interface, the first user interface includes: a first user and a second user's communication records in a first application, a first operation option; in response to the first operation For the first operation received on the option, the first device displays a second user interface.
  • the second user interface includes a first identifier and a second identifier, and the first identifier corresponds to the first identifier stored in the first device.
  • the second identifier corresponds to a second file stored in the first device; the first device receives a second operation on the first identifier, selects the first file; responds to sharing the first file In the third operation, the first device sends the first file to the second device through the Wi-Fi direct communication connection with the second device; wherein, the first user logs in to the second device on the first device The first application, the second user logs in the first application on the second device.
  • the electronic device can quickly share files with other nearby devices in the application through Wi-Fi direct communication connections with other devices.
  • the method does not rely on the server, and can support users to share files regardless of whether there is a communication connection between the electronic device and the server, and whether the communication connection is good.
  • This method can optimize user experience, save cellular data traffic consumed by electronic devices, and reduce server load.
  • the way of sharing files through Wi-Fi direct communication connection makes the size of the files that the electronic device can share is not limited, that is to say, the method can support the electronic device to share larger files to other surrounding devices. In this way, the process of using the application on the electronic device to share the file is intuitive, simple and fast for the user.
  • the first application may be an instant messaging application, a mailbox application, and so on.
  • the first user interface may be an interface displayed when the electronic device runs the first application program.
  • the first file or the second file may include, but is not limited to: pictures, audios, videos, documents, links, and so on.
  • the first device can discover and determine the second device via Bluetooth. Using Bluetooth can ensure that the first device quickly discovers and determines the second device, and improves the efficiency of sharing files.
  • the first device may discover one or more devices through Bluetooth after displaying the first user interface, and determine the second device among the discovered one or more devices.
  • the first device may, in response to the first operation, discover one or more devices via Bluetooth, and determine the second device among the discovered one or more devices.
  • the first device may receive a Bluetooth broadcast packet sent by one or more devices, and the Bluetooth broadcast packet includes a user identification, and a user corresponding to the user identification logs in the first application on the device.
  • the one or more devices are one or more devices discovered by the first device.
  • the first device may determine the device that sends the first identification among the one or more devices as the second device; the first identification is the user identification of the second user. In this way, the first device can determine the device used by the second user to log in to the first application among the discovered one or more devices.
  • the first device may perform a process of establishing a Wi-Fi direct communication connection with the second device before sending the first file to the second device.
  • the first device may perform the process of establishing a Bluetooth communication connection with the second device before performing the process of establishing a Wi-Fi direct communication connection with the second device, and pass The established Bluetooth communication connection sends the service set identification SSID and password to the second device; the SSID and the password are used by the second device to perform the establishment of the Wi-Fi direct communication connection with the first device process.
  • the first device can first establish a Bluetooth communication connection with the second device, and then establish a Wi-Fi direct communication connection with the second device based on the Bluetooth communication connection, so that the Wi-Fi direct communication connection can be quickly established. Thereby improving the efficiency of sharing files.
  • the second user interface further includes a second operation option
  • the third operation includes: an operation received on the second operation option after the first file is selected.
  • the first device may display the second operation option on the second user interface after selecting the first file, so that the user may be prompted to share the first file and give the user a better user experience.
  • the first device may simultaneously display the second operation option on the second user interface while displaying the second user interface.
  • a third user interface may also be displayed.
  • the third user interface includes prompt information, and the prompt information is used to indicate the The transmission status of the first file.
  • the transmission status of the first file may include, but is not limited to: the first file is waiting to be received by the second device, the first file is being transferred to the second device, the first file is not successfully transferred to the second device, and the first file is being transferred to the second device. Successfully transmitted to the second device and so on. In this way, the user can intuitively learn the transmission status of the first file, and give the user a better experience.
  • the third user interface may further include a communication record of the first user and the second user in the first application.
  • the first device may send the first file to the second device through the Wi-Fi direct communication connection with the second device, and send the file to the second device.
  • the device sends a file sharing request; and in the case of receiving a sharing request response sent by the second device in response to the file sharing request, the first device is connected through the Wi-Fi direct communication connection with the second device
  • the file is sent to the second device. In this way, the first file can be sent to the second device with the consent of the second user, and the user experience can be guaranteed.
  • the file sharing request may be sent by the server.
  • the first device may send a file sharing request to the server, so that the server sends the file sharing request to the second device.
  • the server provides services for the first application. Sending the file sharing request through the server allows the server to learn and record the file transfer event between the first device and the second device.
  • the first device before the first device sends the first file to the second device, it may also detect a fourth operation for starting the first communication service and the second communication service; Fourth operation, the first device starts the first communication service and the second communication service.
  • the first communication service is used by the first device to discover and determine the second device via Bluetooth
  • the second communication service is used by the first device to send the first file to the second device via the Wi-Fi direct communication connection.
  • the first communication service is a Bluetooth communication service
  • the second communication service is a WLAN communication service.
  • an embodiment of the present application provides a method for transferring files in an application.
  • the difference between the method of the second aspect and the method of the first aspect is that in the method of the first aspect, the user first selects the application and then the file, while in the method of the second aspect, the user selects the file first and then the application.
  • the method of the second aspect is applied to a first device, and the method may include: the first device displays a fourth user interface, the fourth user interface includes a third identifier and a fourth identifier, the third identifier corresponds to the first device The third file stored in the third file, the fourth identifier corresponds to the fourth file stored in the first device; the fifth operation on the third identifier is received, and the third file is selected; in response to sharing the third file
  • the sixth operation is to display the options of one or more applications; the options of the one or more applications include the options of the first application; in response to the seventh operation received on the options of the first application, display A fifth user interface.
  • the fifth user interface includes: options for one or more contacts of the first user in the first application; the one or more contacts include the second user; The eighth operation received on the option of the second user, the first device sends the third file to the second device through the Wi-Fi direct communication connection with the second device; wherein, the first user is in the The first application is logged in on the first device, and the second user is logged in to the first application on the second device.
  • the electronic device can quickly share files with other nearby devices in the application through Wi-Fi direct communication connections with other devices.
  • the method does not rely on the server, and can support users to share files regardless of whether there is a communication connection between the electronic device and the server, and whether the communication connection is good.
  • This method can optimize user experience, save cellular data traffic consumed by electronic devices, and reduce server load.
  • the way of sharing files through Wi-Fi direct communication connection makes the size of the files that the electronic device can share is not limited, that is to say, the method can support the electronic device to share larger files to other surrounding devices. In this way, the process of using the application on the electronic device to share the file is intuitive, simple and fast for the user.
  • the third file or the fourth file may include, but is not limited to: pictures, audios, videos, documents, links, and so on.
  • the first device can discover and determine the second device via Bluetooth. Using Bluetooth can ensure that the first device quickly discovers and determines the second device, and improves the efficiency of sharing files.
  • the first device may discover one or more devices via Bluetooth, and determine the second device among the discovered one or more devices equipment.
  • the first device may, in response to the eighth operation, discover one or more devices via Bluetooth, and determine the second device among the discovered one or more devices.
  • the first device may receive a Bluetooth broadcast packet sent by one or more devices, and the Bluetooth broadcast packet includes a user identification, and a user corresponding to the user identification logs in the first application on the device.
  • the one or more devices are one or more devices discovered by the first device.
  • the first device may determine the device that sends the first identification among the one or more devices as the second device; the first identification is the user identification of the second user. In this way, the first device can determine the device used by the second user to log in to the first application among the discovered one or more devices.
  • the first device may perform a process of establishing a Wi-Fi direct communication connection with the second device before sending the third file to the second device.
  • the first device may perform the process of establishing a Bluetooth communication connection with the second device before performing the process of establishing a Wi-Fi direct communication connection with the second device, and pass The established Bluetooth communication connection sends the service set identification SSID and password to the second device; the SSID and the password are used by the second device to perform the establishment of the Wi-Fi direct communication connection with the first device process.
  • the first device can first establish a Bluetooth communication connection with the second device, and then establish a Wi-Fi direct communication connection with the second device based on the Bluetooth communication connection, so that the Wi-Fi direct communication connection can be quickly established. Thereby improving the efficiency of sharing files.
  • the first device responds to the sixth operation of sharing the third file
  • the displayed one or more application options may be any of the following:
  • the first device may also display the sixth user interface in response to the eighth operation received on the option of the second user, and the sixth user interface includes: The communication record and prompt information of the user and the second user in the first application, the prompt information is used to indicate the transmission status of the third file.
  • the transmission status of the third file may include but is not limited to: the third file is waiting to be received by the second device, the third file is being transferred to the second device, the third file is not successfully transferred to the second device, and the third file is being transferred to the second device. Successfully transmitted to the second device and so on. In this way, the user can intuitively learn the transmission status of the third file, and give the user a better experience.
  • the fourth user interface may include a third operation option.
  • the sixth operation may include the operation received by the first device on the third operation option.
  • the first device may display the third operation option after selecting the third file, so that the user may be prompted to share the third file, giving the user a better user experience.
  • the first device may simultaneously display the third operation option on the fourth user interface while displaying the fourth user interface.
  • the first device may send the third file to the second device through the Wi-Fi direct communication connection with the second device, to the second device
  • the device sends a file sharing request; and in the case of receiving a sharing request response sent by the second device in response to the file sharing request, the third device is connected through the Wi-Fi direct communication connection with the second device.
  • the file is sent to the second device. In this way, the third file can be sent to the second device with the consent of the second user, and the user experience can be guaranteed.
  • the file sharing request may be sent by the server.
  • the first device may send a file sharing request to the server, so that the server sends the file sharing request to the second device.
  • the server provides services for the first application. Sending the file sharing request through the server allows the server to learn and record the file transfer event between the first device and the second device.
  • the fourth operation for starting the first communication service and the second communication service may also be detected; in response to the first communication service Fourth operation, the first device starts the first communication service and the second communication service.
  • the first communication service is used by the first device to discover and determine the second device via Bluetooth
  • the second communication service is used by the first device to send the third file to the second device via the Wi-Fi direct communication connection.
  • the first communication service is a Bluetooth communication service
  • the second communication service is a WLAN communication service.
  • an embodiment of the present application provides an electronic device.
  • the electronic device includes one or more processors and a memory; the memory is coupled with the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call The computer instructions cause the electronic device to execute the method in the first aspect or any one of the implementation manners of the first aspect.
  • an embodiment of the present application provides an electronic device.
  • the electronic device includes one or more processors and a memory; the memory is coupled with the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call The computer instructions cause the electronic device to execute the method in the second aspect or any one of the implementation manners of the second aspect.
  • the embodiments of the present application provide a computer program product containing instructions.
  • the computer program product When the computer program product is run on an electronic device, the electronic device is caused to perform any possible implementation as in the first aspect and the first aspect. The method described by the method.
  • the embodiments of the present application provide a computer program product containing instructions.
  • the computer program product is run on an electronic device, the electronic device is caused to perform any possible implementation as in the second aspect and the second aspect. The method described by the method.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, which when the foregoing instructions run on an electronic device, cause the electronic device to execute the first aspect and any possible implementation manner in the first aspect Described method.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, which when the foregoing instructions run on an electronic device, cause the foregoing electronic device to execute the second aspect and any possible implementation manner of the second aspect Described method.
  • an embodiment of the present application provides a system for transferring files in an application.
  • the system includes a first device and a second device.
  • the first device may be the electronic device described in the third aspect.
  • the second device is configured to receive the first file through the Wi-Fi direct communication connection with the first device.
  • an embodiment of the present application provides a system for transferring files in an application.
  • the system includes: a first device and a second device.
  • the first device may be the electronic device described in the fourth aspect.
  • the second device is configured to receive the third file through the Wi-Fi direct communication connection with the first device.
  • the second device is further configured to receive a file sharing request sent by the first device before receiving the first file or the third file; in response to the file sharing request, display The notification window is used to ask the user whether to receive the first file or the third file; the notification window includes a fourth operation option, and in response to the ninth operation received on the fourth operation option, the second device receives The first file or the third file.
  • the second device is further configured to send a Bluetooth broadcast packet before receiving the first file or the third file.
  • the Bluetooth broadcast packet includes a user ID, and the user ID corresponds to The user logs in the first application on the second device.
  • the Bluetooth broadcast packet is used by the first device to discover and determine the second device.
  • the second device is further configured to perform a process of establishing a Wi-Fi direct communication connection with the first device before receiving the first file or the third file .
  • the second device is further configured to display a seventh user interface after receiving the first file or the third file
  • the seventh user interface includes: the second user and the second user A user's communication record and prompt information in the first application program.
  • the prompt information is used to indicate the transmission status of the first file or the third file.
  • For the transmission status of the first file or the third file refer to the related descriptions of the first aspect and the second aspect.
  • the electronic device can quickly share files with other nearby devices in the application through Wi-Fi direct communication connections with other devices.
  • This technical solution has the following beneficial effects: the electronic device can quickly and quickly transfer files to other surrounding devices in the application, optimizing the user experience; regardless of whether there is a communication connection between the electronic device and the server, and whether the communication connection is Good, electronic devices can share files to other devices, which can save cellular data traffic consumed by electronic devices and reduce server load; the size of files shared by electronic devices is not limited, which means that electronic devices can share larger files To other equipment around.
  • FIG. 1A is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application.
  • FIG. 1B is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application.
  • FIG. 2A is a user interface for displaying an application program installed on an electronic device provided by an embodiment of the present application
  • FIG. 2B is a schematic diagram of opening "hishare" provided by an embodiment of the present application.
  • Figures 3A-3I are a series of user interfaces on the sending end in scenario one provided by an embodiment of the application;
  • 4A-4F are another series of user interfaces on the sending end in scenario one provided by an embodiment of this application.
  • 5A-5I are another series of user interfaces on the sending end in scenario one provided by an embodiment of this application.
  • 6A-6H are a series of user interfaces on the sending end in scenario 2 provided by an embodiment of this application;
  • 7A-7E are another series of user interfaces on the sending end in scenario 2 provided by an embodiment of this application.
  • 8A-8I are still another series of user interfaces on the sending end in scenario 2 provided by an embodiment of this application.
  • 9A-9D are a series of user interfaces on the sending end in scenario 3 provided by an embodiment of this application.
  • FIG. 10A is a schematic structural diagram of a communication system provided by an embodiment of this application.
  • FIG. 10B is a schematic flowchart of a method for transferring files in an application in scenario 1 provided by an embodiment of the application; FIG.
  • FIG. 10C is a schematic flowchart of a method for transferring files in an application in scenario 2 provided by an embodiment of the application; FIG.
  • Figure 11 is the architecture of the ShareKit service provided by an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more.
  • the following embodiments of the application provide a method, electronic device, and system for transferring files in an application, so that users can quickly share files with other users nearby through the application installed on the electronic device.
  • the method does not rely on the server, and the file transfer process can be performed without a network. It can support users to share files regardless of whether there is a communication connection between the electronic device and the server and whether the communication connection is good.
  • the method supports the electronic device to quickly transfer files to other surrounding devices in the application, optimizes the user experience, and can also save the cellular data traffic consumed by the electronic device and reduce the load of the server.
  • the size of the file that the electronic device can share is not limited, that is, the method can support the electronic device to share a larger file to other surrounding devices. In this way, the process of using the application on the electronic device to share the file is intuitive, simple and fast for the user.
  • the communication connection between the electronic device and the server may include, but is not limited to, connections based on 3G, LTE, 5G and other cellular mobile communication networks, wide area networks (WAN), local area networks (LAN), and so on.
  • the electronic device can share files with other surrounding devices in the following applications: instant messaging applications, mailbox applications, and so on.
  • the files shared by the electronic device to other surrounding devices may include, but are not limited to: pictures, audios, videos, documents, links, and so on. These files can be obtained by the electronic device itself, such as pictures and/or videos captured by a camera, documents generated by using a display screen to collect text input by the user, etc., or the electronic device can be obtained from other devices such as a server through the network. Obtained.
  • the electronic device under the condition that the "hishare" of the electronic device such as a smart phone is turned on, the electronic device can discover other devices such as nearby mobile phones and tablet computers. If a user wants to share a file in an application with other contacts in the application, the electronic device can send the file selected by the user to other discovered devices, and another user can log in to the application on other devices, and the other user is Is the contact of the current user.
  • the electronic device used by a certain user to log in to the application may be referred to as the user's associated device.
  • the specific implementation of the steps of how the electronic device discovers other nearby devices, how to determine the devices associated with the contact among other nearby devices, and how to send files will be described in detail in subsequent embodiments, and will not be repeated here.
  • “hishare” is a service or function provided by an electronic device, which can support the electronic device to send files to other nearby devices.
  • "hishare” can support the electronic device to pass Bluetooth (BT), near field communication (NFC), wireless fidelity direct (Wi-Fi direct) (also known as Wi-Fi direct) For wireless fidelity peer-to-peer (Wi-Fi p2p), Wi-Fi software access point (software access point, softAP) one or more of the technologies to transfer files to other nearby equipment.
  • "hishare” can support the electronic device to transmit data via a local area network (LAN) to other devices in the same local area network as the electronic device. The device in the same local area network as the electronic device may also be other devices near the electronic device.
  • "hishare” can support the electronic device to transmit files to the server through 3G, LTE, 5G and other cellular mobile communication technologies or wide area network (WAN) technologies, and the server can forward the files to nearby other devices.
  • “hishare” can support electronic devices to simultaneously use Wi-Fi direct connection (such as Wi-Fi p2p) and cellular mobile communication technology to transfer files to other nearby devices.
  • Wi-Fi direct connection such as Wi-Fi p2p
  • cellular mobile communication technology to transfer files to other nearby devices.
  • the aforementioned other nearby devices refer to devices discovered by electronic devices through one or more of NFC, Bluetooth, Wi-Fi direct connection (such as Wi-Fi p2p), Wi-Fi softAP, and Wi-Fi LAN.
  • turning on "hishare” may include turning on one or more of the Bluetooth module, NFC module, and WLAN module of the electronic device.
  • the electronic device can be discovered through one or more of NFC, Bluetooth, Wi-Fi direct connection (such as Wi-Fi p2p), Wi-Fi softAP, and Wi-Fi LAN. Equipment near the electronic device.
  • the electronic device turns on "hishare", one or more of NFC, Bluetooth, Wi-Fi direct connection (such as Wi-Fi p2p), Wi-Fi softAP, Wi-Fi LAN Technology discovers other devices near the electronic device and transfers files to other nearby devices, then due to Bluetooth, Wi-Fi direct connection (such as Wi-Fi p2p), Wi-Fi softAP, Wi-Fi LAN and other technical support electronic devices There is no need to communicate with each other through the server, and the process of the electronic device transferring files to other nearby devices in the application does not rely on the communication connection between the electronic device and the server.
  • Wi-Fi direct connection such as Wi-Fi p2p
  • Wi-Fi softAP Wi-Fi LAN
  • the electronic device can quickly transfer files to other surrounding devices in the application, and can transfer larger files to other surrounding devices, so as to optimize the user experience and save the cellular data traffic consumed by the electronic device.
  • “hishare” supports electronic devices to discover the surrounding devices through Bluetooth and determine the devices associated with the contact among these devices, and then send the files selected by the user to the device through Wi-Fi P2P. The device associated with the contact. In this way, electronic devices can quickly discover surrounding devices through BT, and quickly and conveniently send files to the devices associated with the contact through Wi-Fi P2P.
  • “hishare” is only a word used in this embodiment, and its representative meaning has been recorded in this embodiment, and its name does not constitute any limitation on this embodiment.
  • “hishare” may also be referred to as other nouns such as “short-distance sharing”, “quick sharing”, “Moment Share” and so on.
  • the electronic device may be a portable terminal device equipped with iOS, Android, Microsoft or other operating systems, such as a mobile phone, a tablet computer, a wearable device, etc., or a laptop with a touch-sensitive surface or a touch panel.
  • Non-portable terminal devices such as laptops, desktop computers with touch-sensitive surfaces or touch panels.
  • FIG. 1A shows a schematic diagram of the structure of an electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the wireless communication module 160 may include a Bluetooth module, an NFC module, a WLAN module, and so on.
  • the Bluetooth (BT) module can provide one or more Bluetooth communication solutions including classic Bluetooth (Bluetooth 2.1) or Bluetooth low energy (Bluetooth low energy, BLE).
  • the WLAN module can provide one or more WLAN communication solutions including Wi-Fi direct, Wi-Fi LAN, or Wi-Fi softAP.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the Bluetooth (BT) module and the WLAN module included in the wireless communication module 160 of the electronic device 100 can transmit signals to detect or scan other nearby devices, and can also monitor signals emitted by other devices, thereby using Bluetooth Or wireless communication technologies such as WLAN discover nearby devices, establish wireless communication connections with nearby devices, and transfer files to nearby devices through the above-mentioned connections.
  • Bluetooth Or wireless communication technologies such as WLAN discover nearby devices, establish wireless communication connections with nearby devices, and transfer files to nearby devices through the above-mentioned connections.
  • the wireless communication solution provided by the mobile communication module 150 of the electronic device 100 can enable the sender to communicate with a device (such as a server) in the network, and the WLAN wireless communication solution provided by the wireless communication module 160 can also enable the electronic device 100 to communicate with Communication with devices (such as servers) in the network.
  • the electronic device 100 can communicate with other nearby devices (such as the receiving end 102) through a device in the network (such as a server). For example, the sending end can first transmit a file to a device in the network, and then the device in the network can transmit the file To other devices nearby.
  • the processor 110 of the electronic device 100 may be used to generate signals sent by the wireless communication module 160 and the mobile communication module 150, such as detection requests, Bluetooth broadcast signals, beacon signals, and so on.
  • the processor 110 of the electronic device 100 may also be used to parse the signals received by the wireless communication module 160 and the mobile communication module 150, such as detection responses and the like.
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • an external memory card such as a Micro SD card
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the earphone interface 170D is used to connect wired earphones.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the air pressure sensor 180C is used to measure air pressure.
  • the magnetic sensor 180D includes a Hall sensor.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • Distance sensor 180F used to measure distance.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the motor 191 can generate vibration prompts.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present application takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 by way of example.
  • FIG. 1B is a software structure block diagram of an electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the software system shown in FIG. 1B involves the presentation of various applications (such as instant messaging applications, mailbox applications, file managers, etc.), and provides the "hishare" service in the embodiments of the present application.
  • the application framework layer provides WLAN services and Bluetooth services
  • the core and the bottom layer provide WLAN capabilities, Bluetooth capabilities, and basic communication protocols.
  • the method for transferring files in an application provided in the embodiments of the present application involves two ends, one end is the sending end 101 that sends the file, and the other end is the receiving end 102 that receives the file.
  • the sending end 101 and the receiving end 102 are both electronic devices, and the structures of the sending end 101 and the receiving end 102 can refer to the related description in the embodiment of FIG. 1A and FIG. 1B.
  • the sending end may be referred to as the first device, and the receiving end may be referred to as the second device.
  • the associated user at the sending end may be referred to as the first user, and the associated user at the receiving end may be referred to as the second user.
  • the sender 101 can discover other nearby devices, and determine the device associated with the contact selected by the user among other nearby devices, and the device associated with the contact selected by the user is the device associated with the contact selected by the user. For the receiving end 102. Then, the sending end 101 can send the file selected by the user to the receiving end 102 through "hishare" in the application.
  • GUI graphical user interface
  • 2A-2B exemplarily show an operation of turning on "hishare" on the sending end 101.
  • FIG. 2A exemplarily shows an exemplary user interface 21 on the sending end 101 for displaying installed applications.
  • the user interface 21 displays: a status bar, a calendar indicator, a weather indicator, a tray with commonly used application icons, a navigation bar, and other application icons (such as the icon of the gallery, the icon 201 of the instant messaging application "Hi Chat", etc. and many more.
  • the status bar may include: one or more signal strength indicators of mobile communication signals (also known as cellular signals), the name of the operator (for example, "China Mobile”), and wireless fidelity (Wi-Fi) One or more signal strength indicators of the signal, battery status indicator, time indicator, etc.
  • the navigation bar may include system navigation keys such as the return key, the home screen key, and the multitasking key.
  • the user interface 21 exemplarily shown in FIG. 2A may be a home screen.
  • the sending end 101 may display a window 202 on the user interface 21 in response to the gesture.
  • a control 202A may be displayed in the window 202, and the control 202A may receive an operation (such as a touch operation, a click operation) to turn on/off the "hishare" function of the sending terminal 101.
  • the manifestation of the control 202A may include an icon and/or text (for example, the text "hishare", etc.).
  • the window 201 may also display switch controls for other functions such as Wi-Fi, Bluetooth, flashlight, and so on.
  • the display form of the control 202A can be changed, for example, a shadow when the control 202A is displayed is added.
  • the sending end 101 may also initiate "hishare” in other ways.
  • the sender 101 may also display a setting interface provided by the settings application.
  • the settings interface may include a control provided to the user to enable/disable the "hishare” function of the sender 101. Enter a user operation on the above to open the "hishare” of the sender 101.
  • the user can also select a contact to share the file in the application and then turn on the "hishare" of the sender 101, which will be described in detail in subsequent embodiments, and will not be repeated here.
  • the operation for opening "hishare” may be referred to as the fourth operation for opening the first communication service and the second communication service.
  • the first communication service is used by the sending end to discover and determine the receiving end through Bluetooth
  • the second communication service is used for the sending end to send the file to the receiving end through a Wi-Fi direct communication connection.
  • the user interface implemented on the sending end 101 and the receiving end 102 will be described below in conjunction with several application scenarios involved in this application.
  • Scenario 1 The user selects the contact first, and then selects the file to share
  • 3A to 3I exemplarily show the user interface displayed by the sending end 101 in scenario one.
  • Figures 3A-3B show an embodiment in which a user selects a contact in an application.
  • FIG. 3A exemplarily shows the user interface 31 of the first application program (for example, the instant messaging application "Hi Chat") displayed by the sending terminal 101.
  • the first application program may be an application program for social communication installed on an electronic device, and the first application program may support communication between multiple users, such as sending texts, voices, files, etc. to each other.
  • the user can log in to the first application on the sending terminal 101 using his user ID and password. After the user logs in to the first application, he can communicate with the contacts added by the user in the first application.
  • the user who logs in to the first application on the sending end 101 may be referred to as an associated user of the sending end 101.
  • the user interface 31 shown in FIG. 3A may be displayed by the sending terminal 101 in response to a user operation (such as a click operation, a touch operation, etc.) received on the icon 201 in the user interface 21.
  • the user interface 31 is used to display one or more contact options of the user in the first application.
  • the user interface 31 displays: a status bar 301, a title bar 302, a search box 303, one or more recent contact options, and a menu bar 305.
  • the status bar 301 can refer to the status bar in FIG. 2A.
  • the title bar 302 may include a current page indicator for indicating the current page, for example, the text information "Hi Chat” is used to indicate that the current page is a user interface provided by the first application "Hi Chat”.
  • the search box 303 can be used to monitor touch operations, click operations, etc., in response to the operation, the sending end 101 can display a text input box so that the user can enter the contact options and chat records (such as text information) that the user wants to search in the text input box , Pictures, links or other files, etc.).
  • the contact options and chat records such as text information
  • the recent contact options may include contact options corresponding to one or more contacts that the user has communicated recently in the first application program, and the contact options may include: official account options, user options, group options, and so on.
  • the recent contact options include an option 304A for the contact "Kate” and an option 304B for the group "workgroup”.
  • the realization form of the contact option may include, but is not limited to: icons or text.
  • the icon or text can be used to indicate the user identification of the contact in the first application.
  • the user identification may include, but is not limited to: the account number, avatar, nickname, name, etc. of the contact in the first application.
  • the menu bar 305 may include multiple controls, such as “Hi Chat”, “Address Book”, “Discover” and “Me” as shown in FIG. 3A.
  • the content displayed in the display area other than the menu bar 305 and the status bar 301 in the user interface is related to the currently selected control in the menu bar 305.
  • the currently selected control in the menu bar 305 in FIG. 3A is "Hi Chat”.
  • the sending end 101 may respond to the user operation detected on the contact option and display the communication record of the contact corresponding to the contact option on the display screen.
  • the sender 101 may also enable "hishare" in response to a user operation detected on the contact option.
  • the user operation detected by the sending end 101 on the contact option may be referred to as a user operation for selecting a contact.
  • the contact corresponding to the contact option is the selected contact.
  • FIG. 3B exemplarily shows the user interface 32 displayed by the sender 101 in response to an operation (such as a click operation, a touch operation, etc.) input by the user on the option 304A of the contact "Kate", and the selected contact is "Kate” .
  • the user interface 32 is used to display the communication records of the associated user of the sending terminal 101 and the contact "Kate".
  • the user interface 32 displays: a status bar 306, a title bar, a communication record 308 of the associated user and contact "Kate" of the sending end 101 (the communication record shown in FIG. 3B is empty), and a menu 309 .
  • the status bar 306 can refer to the status bar in FIG. 2A.
  • the title bar may include a current page indicator 307B for indicating the current page, for example, the text information "Kate” is used to indicate that the current page is a page for communication between the user and the contact "Kate”.
  • the title bar may also include a return key 307A, which is used to monitor user operations, and the sending end 101 may display the user interface 31 shown in FIG. 3A in response to the user operation on the return key 307A.
  • the menu 309 may include a control 309A, a text input box 309B, and a control 309C.
  • the control 309A can be used to monitor user operations, and the sending terminal 101 can prompt the user to input the voice sent to the contact "Kate" in response to the user operation on the control 309A.
  • the text input box 309B can be used to monitor user operations, and the sending end 101 can display a virtual keyboard in response to the user operations on the control 309B for the user to input the text sent to the contact "Kate".
  • the control 309C can be used to monitor user operations, and the sender 101 can display more functional service options in response to user operations on the control 309C, such as options for taking pictures, and equipment for initiating association with the contact "Kate” Options for video calls between users, options for transferring money to the contact "Kate", etc.
  • Figures 3C-3E show an embodiment in which a user selects a file and shares it with the selected contact after selecting a contact in the application.
  • FIG. 3C exemplarily shows a plurality of function service options displayed by the sending end 101 in response to a user operation detected on the control 309C in the user interface 32 shown in FIG. 3B.
  • the multiple function service options include "hishare file transfer" 310.
  • the "hishare file transfer" option 310 is used to monitor user operations (such as click operations, touch operations, long-press operations, etc.).
  • the sender 101 can respond to the user operations detected on the "hishare file transfer" option 310 and display A user interface for displaying one or more files stored on the sending end 101.
  • the sender 101 may also enable “hishare” in response to a user operation detected on the "hishare file transfer” option 310.
  • FIG. 3D exemplarily shows a user interface 33 on the sending end 101 for displaying one or more files stored by the sending end 101.
  • the user interface 33 may include: a status bar 311, a control 312A, a control 312B, and a file area 313.
  • the status bar 311 can refer to the status bar in the user interface 21 shown in FIG. 2A.
  • the control 312A can be used to monitor user operations, and the sending end 101 can display a user interface 32 as shown in FIG. 3C in response to the user operation detected on the control 312A.
  • the control 312B can be used to monitor user operations.
  • the sender 101 can respond to the user operation detected on the control 312B, and send the file selected by the user in the file area 313 to the selected contact "Kate" in the first application. "Associated device.
  • the control 312B can only receive user operations after the user selects a file in the file area 313.
  • the sender 101 may add a shadow on the control 312B to remind the user that the control 312B cannot receive user operations.
  • the file area 313 may display thumbnails or names of one or more files, such as thumbnails of pictures (such as picture thumbnails 313A, picture thumbnails 313B), video thumbnails (such as video thumbnails 313C), Name (such as the name of the Word format document "Novel 1" 313D) and so on.
  • the file corresponding to the thumbnail or name of the file such as the original image corresponding to the picture thumbnail 313A, the original video corresponding to the video thumbnail 313C, etc., may be stored on the sending terminal 101.
  • the sending end 101 detects an upward or downward sliding operation in the file area 313, the sending end can update the content displayed in the file area 313 so that the user can browse more file thumbnails or names. Not limited to the upward or downward sliding operation, the user can also slide left or right in the file area 313 to browse the thumbnails or names of more files.
  • the user can input a user operation in the file area 313 to select a file to be shared with the contact "Kate".
  • the user operation may be a click operation, a touch operation, etc., acting on the thumbnail or name of the file.
  • the user can click on the image thumbnail 313A, the image thumbnail 313B, and the name "Novel 1" 313D in the file area 313, and select the corresponding file such as the original image corresponding to the image thumbnail 313A, the original image corresponding to the image thumbnail 313B,
  • the file corresponding to the name "Novel 1" 313D is selected as the file to be shared with the contact "Kate".
  • the sender may also display a mark 313E on the thumbnail or name selected by the user in the file area 313.
  • the mark 313E may indicate that the thumbnail or the file corresponding to the name has been User choice.
  • Fig. 3E exemplarily shows an embodiment in which the user shares the selected file with the contact "Kate" in the first application.
  • the sending terminal 101 may detect a user operation for sharing the selected file to the contact on the user interface 33, and the user operation may be an operation acting on the control 312B (for example, a click operation, Touch operation), the sending end 101 can transmit the file selected by the user to the device associated with the contact "Kate" in the first application in response to the user operation.
  • the sender 101 can also transmit the file selected by the user to the device associated with the contact "Kate" in the first application in response to other forms of operation, for example, it can also In response to the user's operation of shaking the sending terminal 101 after selecting a file, for example, the file can be transferred in response to a voice control operation or the like.
  • the device associated with the contact refers to the device used when the contact currently logs in to the first application.
  • the device associated with the contact selected by the user is the receiving end 102.
  • the contact selected by the user in the first application is an associated user of the receiving terminal 102.
  • How the sender 101 determines the device associated with the contact selected by the user (for example, the device associated with the contact "Kate" in the first application), that is, how to determine the receiver 102, can refer to the detailed description of the subsequent embodiments. Do not go into details.
  • the sending end 101 transmits the file selected by the user to the receiving end 102 through "hishare".
  • the transmission process please refer to the detailed description of the subsequent embodiments, which will not be repeated here.
  • the sending end 101 responds to the detected user operation for sharing the selected file to the contact, and after transmitting the selected file to the receiving end 102, it may be shown in FIG. 3F-figure.
  • Prompt information 315 is displayed in one or more exemplary file transfer records 314 shown in 3I.
  • the prompt information 315 is used to prompt the user of the transmission status of the selected file, which can make the user know the transmission status of the selected file very intuitively, and improve the user experience.
  • the prompt information 315 may not be a visual interface element displayed on the display screen, but may be audio played through the speaker 170A.
  • FIG. 3F-FIG. 3I show the user interface on the sending end 101 for feedback of the file transmission status.
  • the sending end 101 may exemplify the user as shown in FIG. 3C.
  • the file transfer record 314 is displayed in the communication record 308 of the interface 32.
  • the user interface 32 is a user interface for displaying the communication records of the associated user of the sending terminal 101 and the contact "Kate". In this way, the user can communicate with the contact in the user interface 32, for example, sending text, voice, and so on.
  • the file transfer record 314 may include: the avatar of the associated user of the sending end 101, the thumbnail or name of one or more files selected by the user, and prompt information 315.
  • the prompt message 315 is used to indicate the transmission status of the file selected by the user.
  • the prompt message 315 may be used to prompt the user that the transmission state of the file selected by the user is the first transmission state.
  • the first transmission state may mean that the file selected by the user is waiting to be received by the receiving terminal 102.
  • the prompt message 315 may include one or more of the following: the text message "waiting to be received by the other party", and a shadow covering all the file thumbnails or names.
  • the sending end 101 displays the prompt message 315 as shown in FIG. 3F, it may also display a control for canceling the file transfer in the file transfer record 314.
  • the control can be implemented as the text "Cancel Transfer". Cancelling the file transmission means that the sending end 101 does not send the file to the receiving end 102.
  • the prompt message 315 can be used to prompt the user that the transmission state of the file selected by the user is the second transmission state.
  • the second transmission state may mean that the file selected by the user is being transmitted to the receiving end 102.
  • the prompt information 315 may include one or more of the following: text information "Sending", a progress bar, and a shadow on the thumbnail or name of the covered part of the file.
  • the prompt message 315 may be used to prompt the user that the transmission state of the file selected by the user is the third transmission state.
  • the third transmission state may mean that the file selected by the user is successfully transmitted to the receiving end 102.
  • the prompt information 315 may include one or more of the following: text information "send successfully" and a progress bar.
  • the prompt message 315 can be used to prompt the user that the transmission state of the file selected by the user is the fourth transmission state.
  • the fourth transmission state may mean that the file selected by the user has not been successfully transmitted to the receiving end 102.
  • the prompt information 315 may include one or more of the following: text information "sending failed", a progress bar, and shadows on thumbnails or names of all files.
  • the sending end 101 displays the prompt message 315 as shown in FIG. 3I, it may also display a control for retransmitting the file in the file transfer record 314.
  • the control can be implemented as the text "Retransmit". Retransmitting the file means that the sending end 101 sends the file selected by the user to the receiving end 102 again.
  • the reason why the file selected by the user is not successfully transmitted to the receiving end 102 may include but is not limited to: there is no device associated with the selected contact among the devices near the sending end 101, and there is a problem between the sending end 101 and the receiving end 102.
  • the communication connection is interrupted, etc., which is not limited in the embodiment of the present application.
  • the sending end 101 may also display other prompt messages, for example, to remind the user that some of the files selected by the user have been successfully transmitted to The prompt information of the receiving terminal 102, the prompt information used to prompt the user contact to refuse to accept the file, and so on.
  • the sending end 101 can be triggered to send the selected file to the receiving end 102.
  • the sender 101 can share files through "hishare" in the first application, and the user experience is intuitive and simple, which greatly improves the efficiency of sharing files in the application.
  • Extension 1 Related extensions to the UI embodiment shown in Figure 3C
  • the sending end 101 may display a plurality of functional service options in response to a user operation detected on the control 308C in the user interface 32 shown in FIG. 3B, and the multiple functional service options include "hishare file transfer" Option 310.
  • the "hishare file transfer" option 310 can receive a user operation, and the sending end 101 can display a user interface 33 as shown in FIG. 3D in response to the user operation.
  • the sending end 101 may also display the "hishare file transfer" option in the manner described in (1) or (2) below.
  • the sender 101 may display the "hishare file transfer" option 310 after determining that the file can be transferred with the receiver 102 through "hishare”.
  • FIGS. 4A-4C it shows an implementation manner in which the sender 101 displays the "hishare file transfer" option 310.
  • FIGS. 3B-3C in the file sharing process shown in FIGS. 3A-3I can be replaced with FIGS. 4A-4C.
  • the user interface 32 shown in FIG. 4A is the same as the user interface 32 shown in FIG. 3B, and reference may be made to related descriptions.
  • the user interface 32 shown in FIG. 4B may include multiple functional service options displayed by the sending terminal 101 in response to a user operation detected on the control 309C in the user interface 32 shown in FIG. 4A. As shown in FIG. 4B, before the sending end 101 determines that it can transfer files with the receiving end 102 through "hishare", the multiple function service options displayed by the sending end 101 do not include the "hishare file transfer" option.
  • the sending end 101 determines that it can transfer files with the receiving end 102 through "hishare"
  • the sending end can newly display a "hishare file transfer" option 310 in the user interface 32.
  • the sender in order to newly display the "hishare file transfer" option 310 in the user interface, can adjust the arrangement of each function service option, for example, reduce the distance between each function service option, and stop displaying a certain function. There are no restrictions on this in the embodiment of the present application.
  • the "hishare file transfer” option shown in FIG. 4C is the same as the "hishare file transfer” option in FIG. 3C, which can be used to monitor user operations. You can refer to related descriptions, which will not be repeated here.
  • the sender 101 will display the “hishare file transfer” option 310 after confirming that it can transfer files with the receiver 102 via “hishare”, so that it can be used when the user wants to transfer files via “hishare”
  • the probability of the file being successfully transferred is increased, and the user has a better experience.
  • the sending end 101 may display the “hishare file transfer” option 310 that can receive user operations after determining that it can transfer files with the receiving end 102 through “hishare”.
  • FIGS. 4D-4F it shows another implementation manner in which the sender 101 displays the "hishare file transfer" option 310.
  • the embodiments of FIGS. 3B-3C in the file sharing process shown in FIGS. 3A-3I can be replaced with FIGS. 4D-4F.
  • the user interface 32 shown in FIG. 4D is the same as the user interface 32 shown in FIG. 3B, and reference may be made to related descriptions.
  • the user interface 32 shown in FIG. 4E may include multiple functional service options displayed by the sending terminal 101 in response to a user operation detected on the control 309C in the user interface 32 shown in FIG. 4A.
  • the "hishare file transfer" option 310 among the multiple functional service options displayed by the sender 101 cannot receive user operations.
  • the "hishare file transfer" option 310 cannot receive user operations means that the sender 101 does not display a user interface for displaying the files stored by the sender 101 in response to the user operation on the "hishare file transfer" option 310.
  • a prompt message may be displayed on the user interface 32 to prompt that it is not currently possible to transfer the file with the receiving end 102 via "hishare".
  • the prompt information may include, but is not limited to: shadows, text information, animations, etc., overlaid on the "hishare file transfer" option 310 shown in FIG. 4E.
  • the sending end 101 determines that it can transfer files with the receiving end 102 through "hishare"
  • the "hishare file transfer” option 310 in the user interface 32 displayed by the sending end 101 can be used to receive user operations .
  • the “hishare file transfer” option 310 that can receive user operations means that the sender 101 can display a user interface for displaying the files stored by the sender 101 in response to the user operation on the “hishare file transfer” option 310.
  • the sending end 101 may display a plurality of functional service options in response to the user operation detected on the control 309C in the user interface 32 shown in FIG. 3B, and the multiple functional service options include "hishare file transfer" Option 310.
  • the "hishare file transfer" option 310 can receive a user operation, and the sending end 101 can display a user interface 33 for displaying the file stored by the sending end 101 in response to the user operation.
  • the sending end 101 may send the file selected by the user in the user interface 33 to the receiving end 102 through "hishare".
  • the sending end 101 may display multiple functional service options in response to a user operation detected on the control 309C in the user interface 32 shown in FIG. 3B.
  • the "hishare file transfer" option 310 may not be included in the multiple function service options.
  • the sending end 101 can send the file to the receiving end 102 through “hishare”.
  • FIGS. 3A-3E in the file sharing process shown in FIGS. 3A-3I can be replaced with FIGS. 5A-5E, and FIGS. 3F-3I can be replaced with FIG. 5F - Figure 5I.
  • Figures 5A-5B show an embodiment in which a user selects a contact in an application.
  • the user interface 51 shown in FIG. 5A may refer to the user interface 31 shown in FIG. 3A
  • the user interface 52 shown in FIG. 5B may refer to the user interface 32 shown in FIG. 3B.
  • Figures 5C-5E show an embodiment in which the user selects a contact in the application and then selects a file to share with the contact.
  • FIG. 5C exemplarily shows a plurality of function service options displayed by the sending end 101 in response to a user operation detected on the control 309C in the user interface 52 shown in FIG. 5B.
  • the difference between Fig. 5C and Fig. 3C is that the user interface 52 shown in Fig. 5C does not include the "hishare file transfer" option.
  • the multiple functional service options in the user interface 52 include an option 501 for sharing pictures and/or videos.
  • Option 501 is used to monitor user operations (for example, click operations, touch operations, long-press operations, etc.).
  • the sender 101 can respond to the user operations detected on the option 501 to display one or more of the stored information of the sender 101.
  • a picture and video user interface In the case that the "hishare" of the sending end 101 has not been turned on, the sending end 101 may also enable the "hishare" in response to the user operation detected on the option 501.
  • FIG. 5D exemplarily shows a user interface 53 on the sending end 101 for displaying one or more pictures and videos stored by the sending end 101.
  • the user interface 53 may include: a status bar 502, a control 503A, a control 503B, and a file area 504.
  • the status bar 502 can refer to the status bar in the user interface 21 shown in FIG. 2A.
  • the control 503A can be used to monitor user operations, and the sending end 101 can display a user interface 52 as shown in FIG. 5C in response to the user operation detected on the control 503A.
  • the control 503B can be used to monitor user operations, and the sending end 101 can send the file selected by the user in the file area 504 to the device associated with the contact "Kate" of the first application in response to the user operation detected on the control 503B. .
  • the control 503B can only receive user operations after the user selects a file in the file area 504.
  • the sender 101 may add a shadow on the control 503B to remind the user that the control 503B cannot receive user operations.
  • One or more thumbnails of pictures and videos may be displayed in the file area 504, such as thumbnails of pictures (such as picture thumbnail 504A), thumbnails of video (such as video thumbnail 504B), and so on.
  • the original images, original videos, etc. corresponding to the thumbnails of the pictures and videos can be stored on the sending terminal 101.
  • the sending end 101 detects an upward or downward sliding operation in the file area 504, the sending end may update the content displayed in the file area 504 so that the user can browse more thumbnails of pictures and/or videos. Not limited to the upward or downward sliding operations, the user can also slide left or right in the file area 504 to browse more thumbnails or names of pictures and/or videos.
  • a control 504C may also be displayed in the file area 504.
  • the sending terminal 101 may update the content displayed in the file area 504 in response to an operation input by the user on the control 504C (for example, a click operation, a touch operation, etc.), so that the user can browse more thumbnails of pictures and/or videos.
  • the user can input a user operation in the file area 504 to select a picture and/or video to be shared with the contact "Kate".
  • the user operation may be a click operation, a touch operation, etc., acting on the thumbnail of the picture and/or video.
  • the user can click on the image thumbnail 504A and the video thumbnail 504B in the file area 504, and determine the corresponding file, such as the original image corresponding to the image thumbnail 504A, and the original video corresponding to the video thumbnail 504B, as to be shared with the contact.
  • the sender may also display a mark 504D on the thumbnail selected by the user in the file area 504.
  • the mark 504D may indicate that the original picture or original video corresponding to the thumbnail has been selected by the user. Selected.
  • Fig. 5E exemplarily shows an embodiment in which the user shares the selected file with the contact "Kate" in the first application.
  • the sender 101 can detect a user operation for sharing the selected picture and/or video to the contact in the user interface 53, and the user operation can be an operation on the control 503B ( For example, click operation, touch operation).
  • the sending end 101 may transmit the picture and/or video selected by the user to the device associated with the contact "Kate" in the first application in response to this operation.
  • the sending terminal 101 can also transmit the pictures and/or videos selected by the user to the device associated with the contact "Kate" in the first application in response to other forms of operation, for example, it can also In response to the user's operation of shaking the sending terminal 101, for example, it may also respond to a voice control operation, etc., to send the picture and/or video selected by the user to the device associated with the contact "Kate" and so on.
  • the sending end 101 sends the picture and/or video selected by the user to the receiving end 102 according to any one of the following Kinds of strategies to send:
  • the sending end 101 determines the total size of the file selected by the user, and if the total size exceeds the first threshold, the file selected by the user is sent to the receiving end 102 through "hishare". If the total size does not exceed the first threshold, the sending end 101 sends the selected file to the receiving end 102 through 3G, LTE, 5G, or other cellular technology or Wi-Fi technology.
  • the sending end 101 asks the user whether to send the file selected by the user to the receiving end 102 through "hishare", and when it detects the user's operation instructing to send the selected file through "hishare", it passes "hishare"
  • the file selected by the user is sent to the receiving terminal 102.
  • the sending end 101 can output visual interface elements, voice, etc. displayed on the display screen to ask the user whether to send the file selected by the user to the receiving end 102 through "hishare”. This strategy can enable the sending end 101 to send the selected file through "hishare” according to the user's needs.
  • FIG. 5F-FIG. 5I show the user interface on the sending end 101 for feedback of the file transmission status.
  • the sending end 101 After the sending end 101 transmits the file selected by the user to the receiving end 102 in response to the operation for sharing the file selected by the user to the contact, as shown in FIG. 5F-FIG. 5I, the sending end 101 can be shown in FIG.
  • the file transfer record 505 is displayed in the communication record 308 of the user interface 32 exemplarily shown in 5C.
  • the file transfer record 505 includes prompt information 506.
  • prompt information 506 For the specific implementation of the file transmission 505, refer to the file transmission record 314 shown in FIGS. 3F-3I.
  • the prompt message 506 can be used to prompt that the transmission state of the selected file is the first transmission state.
  • the prompt information 506 may refer to the prompt information 315 shown in FIG. 3F.
  • the prompt message 506 can be used to prompt that the transmission state of the selected file is the second transmission state.
  • the prompt information 506 may refer to the prompt information 315 shown in FIG. 3G.
  • the prompt message 506 can be used to prompt that the transmission state of the selected file is the third transmission state.
  • the prompt information 506 may refer to the prompt information 315 shown in FIG. 3H.
  • the prompt message 506 can be used to prompt that the transmission state of the selected file is the fourth transmission state.
  • the fourth transmission state refer to the previous description.
  • the prompt information 506, refer to the prompt information 315 shown in FIG. 3I.
  • the sending end 101 can be triggered to send the selected file to the receiver through the function service option. ⁇ 102.
  • the sender 101 can share files through "hishare" in the first application, and the user experience is intuitive and simple, which greatly improves the efficiency of sharing files in the application.
  • the sending end 101 does not need to provide a special "hishare file transfer" option, and when the user triggers the sending end 101 to send the selected file to the receiving end 102, through "Hishare" sends the file to the receiving end 102.
  • Scenario 2 The user selects the file first, and then selects the contact to share.
  • 6A-6H exemplarily show the user interface displayed by the sending end 101 in the second scenario.
  • Figures 6A-6B show an embodiment in which a user selects a file.
  • FIG. 6A exemplarily shows the user interface 61 of the second application (for example, "Gallery") displayed by the sending end 101.
  • the user interface 61 may be used to display one or more pictures and/or videos stored in the sending terminal 101.
  • the second application program can support the user to perform various operations on the files stored on the sending terminal 101, such as browsing, editing, deleting, and selecting operations.
  • "Gallery” is a picture management application installed on smart phones, tablet computers and other electronic devices, and can also be called “album”. This embodiment does not limit the name of the application. That is, the objects managed by the "Gallery" are pictures and/or videos.
  • the user interface 61 may include: a status bar 601, a title bar 602, and a picture area 603. among them:
  • the status bar 601 can refer to the status bar in the user interface 21 shown in FIG. 2A.
  • the title bar 602 may include a current page indicator, for example, the text information "Gallery”. Not limited to text information, the current page indicator can also be an icon.
  • One or more thumbnails of pictures and videos may be displayed in the picture area 603, such as picture thumbnails (such as picture thumbnail 603A), video thumbnails (such as video thumbnail 603B), and so on.
  • the original images, original videos, etc. corresponding to the thumbnails of the pictures and videos can be stored on the sending terminal 101.
  • the sending end 101 detects an upward or downward sliding operation in the picture area 603, the sending end may update the content displayed in the picture area 603, so that the user can browse more thumbnails of pictures and/or videos.
  • the user can also swipe left or right in the picture area 603 to browse more thumbnails or names of pictures and/or videos.
  • a control 603C may also be displayed in the picture area 603.
  • the sending terminal 101 may update the content displayed in the picture area 603 in response to an operation input by the user on the control 603C (for example, a click operation, a touch operation, etc.), so that the user can browse more thumbnails of pictures and/or videos.
  • the user can input a user operation in the picture area 603 to select a picture and/or video.
  • the user operation may be a click operation, a touch operation, etc., acting on the thumbnail of the picture and/or video.
  • the user can click on the picture thumbnail 603A and the video thumbnail 603B in the picture area 603 to determine the corresponding files such as the original image corresponding to the picture thumbnail 603A and the original video corresponding to the video thumbnail 603B as the ones to be shared with the contact. file.
  • the sender may also display a mark 603D on the thumbnail selected by the user in the picture area 603.
  • the mark 603D may indicate that the original picture or original video corresponding to the thumbnail has been selected by the user. select.
  • FIG. 6B exemplarily shows an embodiment in which a user shares pictures and/or videos in the "gallery".
  • the sending end 101 can detect an operation for sharing the selected file in the user interface 61 shown in FIG. 6B.
  • the sending end 101 may display one or more application program icons.
  • the sending end 101 can detect on one or more application icons that the user selects an application for sharing.
  • the sending end 101 can send the file selected by the user to the user in the application selected by the user.
  • the device associated with the contact selected by the user is exemplarily shows an embodiment in which a user shares pictures and/or videos in the "gallery”.
  • the operation for sharing the selected file may be: the user clicks the "hishare file transfer" option 604A after selecting the file.
  • the menu 604 in FIG. 6B may be displayed in the user interface 61.
  • the sending end 101 may also initially display the menu 604 in the user interface 61, that is, the menu 604 does not need to be detected after the user selects a file.
  • the menu 604 may include a "hishare file transfer" option 604A, an option 604B ("move"), an option 604C ("select all"), and an option 604D "more".
  • the "hishare file transfer" option 604A can be used to monitor the operation of sharing the selected file through "hishare".
  • the sending end 101 may also enable the "hishare” in response to a user operation detected on the "hishare file transfer” option 604A.
  • the operation for sharing the selected file can also be implemented in other forms, for example, it can also be a fixed time (such as 1 second) after shaking the sending end 101 ) Select file operation, voice control operation, etc.
  • Figures 6C-6D show an embodiment in which a user selects an application and a contact in the application, and shares a file with the contact.
  • the sending end 101 responds to the operation for sharing the selected file (for example, the operation input on the “hishare file transfer” option 604A after the user selects the file), and displays a window 605 in the user interface 61.
  • the window 605 can obscure part of the content originally displayed in the user interface 61.
  • the window 605 may include: one or more application options, for example, an option 605C of "Hi Chat" and an option 605D of an email address.
  • the implementation form of the application options can be text, icons, and so on.
  • the application corresponding to the application options included in the window 605 can be any of the following:
  • All applications installed on the sending end 101 that can be used to share files.
  • the sender 101 may display all instant messaging applications and email application options in the window 605.
  • the application is an application that can share files through "hishare” program. For example, if a user logs in to the HiChat installed on the sending terminal 101, the device 102 on which the contact Kate in HiChat is currently logged in can transfer files with the sending terminal 101 through "hishare", and the user also logs in to the mailbox installed on the sending terminal 101 at the same time.
  • the contact person in the mailbox that William is currently logged in to the device 102' cannot transfer files with the sender 101 via "hishare".
  • the sender 101 only displays the options of the HiChat application in the window 605, and does not display in the window 605 Options for email application.
  • the sending end 101 can transfer files with other devices through "hishare”
  • the window 605 may also include prompt information 605B.
  • the prompt message 605B is used to prompt the user to select an application program for sharing the selected file.
  • the prompt message 605B may be the text message "Which application do you want to share the file through".
  • the window 605 may also include prompt information 605A.
  • the prompt message 605A is used to prompt the user to share the condition of the file to other devices through "hishare".
  • the prompt message 605A may be a text message "Note: When sharing files through hishare, the other party needs to turn on Bluetooth and WLAN".
  • the application options in the window 605 can be used to monitor user operations (such as click operations, touch operations, etc.), and the sender 101 can respond to the user operations to display for the user to select the contacts in the corresponding application to share the file. interface.
  • the application corresponding to the application option selected by the user may be referred to as the first application.
  • FIG. 6D is an implementation manner of a user interface provided by the first application program for the user to select a contact to share the selected file.
  • the user interface 62 shown in FIG. 6D may be displayed by the sending end 101 in response to a user operation detected on the control 605C.
  • the user interface 62 may include: a status bar 606, a title bar 607, prompt information 608, and one or more contact options. among them:
  • the status bar 606 can refer to the status bar in the user interface 21 shown in FIG. 2A.
  • the title bar 607 may include an indicator of the current page, for example, the text message "Hi Chat". Not limited to text information, the current page indicator 607 may also be an icon.
  • the prompt message 608 can be used to prompt the user to select a contact to share the file.
  • One or more contact options can be used to monitor the operation of selecting a contact to trigger file sharing.
  • the sender 101 may respond to the operation detected on the contact option, and send the file selected by the user to the device associated with the contact corresponding to the contact option through "hishare".
  • the electronic device associated with the contact corresponding to one or more contact options in the user interface 62 can transfer files with the sender 101 through "hishare". In this way, it is possible to avoid the problem that the user selects inappropriate contacts and causes the file sharing failure.
  • the device associated with the contact selected by the user may be referred to as the receiving end 102.
  • Figures 6E-6H show the user interface on the sending end 101 for feedback of the file transmission status.
  • the sender 101 in response to the operation detected on the contact option, sends the file selected by the user to the device associated with the contact corresponding to the contact option via "hishare", as shown in Figure 6E -As shown in FIG. 6H, the sending end 101 may display the file transfer record 610 in the user interface for displaying the communication record of the user and the contact.
  • 6E-6H show the user interface 63 for displaying the communication records of the user and the contact "Kate".
  • the file transfer record 610 includes prompt information 611.
  • prompt information 611 For the specific implementation of the file transmission 505, refer to the file transmission record 314 shown in FIGS. 3F-3I.
  • the prompt message 611 can be used to prompt that the transmission state of the selected file is the first transmission state.
  • the prompt information 611 may refer to the prompt information 315 shown in FIG. 3F.
  • the prompt message 611 can be used to prompt that the transmission state of the selected file is the second transmission state.
  • the prompt information 611 may refer to the prompt information 315 shown in FIG. 3G.
  • the prompt message 611 can be used to prompt that the transmission state of the selected file is the third transmission state.
  • the prompt information 611 may refer to the prompt information 315 shown in FIG. 3H.
  • the prompt message 611 can be used to prompt that the transmission state of the selected file is the fourth transmission state.
  • the prompt information 611 may refer to the prompt information 315 shown in FIG. 3I.
  • the sending end 101 may also display other prompt messages, for example, to prompt that part of the selected file is successfully transmitted to the receiver.
  • the user can trigger the sending terminal 101 to send the file to the contact in the first application after selecting the file to be shared.
  • the sender 101 can share files through "hishare" in the first application, and the user experience is intuitive and simple, which greatly improves the efficiency of sharing files in the application.
  • users can also select files to share in other file management applications, such as selecting documents in the file browser or document manager for sharing.
  • Extension 1 Regarding the relevant extension of the UI embodiment shown in Figure 6C- Figure 6D
  • the sending end 101 may display a plurality of contact options in response to the operation detected on the first application option in the user interface 61 shown in FIG. 6C, and the contact information corresponding to the multiple contact options
  • the associated device can transfer files with the sender 101 through "hishare". In other words, the user can first select the first application, and then select a contact in the user interface provided by the first application to share the file.
  • the user can also select a contact to share a file in the manner described in (1) or (2) below.
  • the sending end 101 may respond to the operation detected on the first application option in the user interface 61 shown in FIG. 6C, and display one or more items provided by the first application program. User interface for recent contacts options.
  • FIGS. 6C-6D in the file transfer process shown in FIGS. 6A-6H can be replaced with FIGS. 7A-7B.
  • the user interface 61 shown in FIG. 7A is the same as the user interface 61 shown in FIG. 6C, and reference may be made to related descriptions.
  • FIG. 7B shows an implementation form of a user interface provided by the first application program for displaying one or more recent contact options.
  • the user interface 71 may include: a status bar 701, a title bar 702, a search box 703, one or more recent contact options, and a menu bar 705.
  • the status bar 301 can refer to the status bar in FIG. 2A.
  • the title bar 702 can refer to the title bar 302 in FIG. 3A.
  • the search box 703 can refer to the search box 303 in FIG. 3A.
  • the menu bar 705 can refer to the menu bar 305 in FIG. 3A.
  • the recent contact options may include options for one or more contacts that the user has communicated with in the first application program recently, and the contact options may include: official account options, user options, group options, and so on.
  • the recent contact options include an option 704A for the contact "MAC” and an option 704B for the contact "Kate”.
  • the sender 101 may display the contact options corresponding to the contacts whose associated device and the sender 101 can transfer files through "hishare" in the upper area (for example, as shown in FIG. 7B).
  • the sender 101 may also display an identifier on the contact option corresponding to the contact whose associated device can transfer files with the sender 101 through "hishare". The identifier is used to remind the user that the user can currently use "hishare” "Share the file with the corresponding contact. In this way, it is possible to avoid the problem that the user selects inappropriate contacts and causes the file sharing failure.
  • the sender 101 may directly display contact options in one or more applications, so that the user can directly select contacts in the application to share files.
  • FIG. 7C shows an implementation manner in which the sender 101 directly displays contact options in one or more applications.
  • FIGS. 6C to 6D in the file transfer process shown in FIGS. 6A to 6H can be replaced with FIG. 7C.
  • FIG. 7C The difference between FIG. 7C and FIG. 6C is that the content in the small window is different.
  • a small window 706 is displayed in the user interface 72, and the small window 706 includes: prompt information 706A, one or more application icons, and contact options corresponding to the application icons. among them:
  • the prompt message 706A is used to prompt the user to select a contact in the application to share a file.
  • the prompt message 706A may be a text message "Please select a contact to share your file”.
  • One or more application icons can be any of the following:
  • the device associated with the contact can transfer files with the sending end 101 through "hishare".
  • the sending end 101 may first determine whether there is a contact-associated device in the installed application that can transfer files with the sending end 101 through "hishare”, and if so, the option corresponding to the application is displayed in Window 706.
  • the sending end 101 can transfer files with other devices through "hishare”
  • point 1 extension 1 of the above scenario 1 This can avoid the problem that users choose inappropriate contacts and cause file sharing failures.
  • the one or more application program icons may include, for example, an icon 706B of "chat” and an icon 706E of mailbox.
  • One application icon can correspond to one or more contact options.
  • the contacts corresponding to the one or more contact options are all: the user's contacts in the application corresponding to the application icon.
  • the contact corresponding to the one or more contact options may be: a contact whose associated device can transfer files with the sender 101 through “hishare”. In this way, it is possible to avoid the problem that the user selects inappropriate contacts and causes the file sharing failure.
  • the icon 706B of "Hi Chat” corresponds to the option 706C of the contact "MAC”
  • the icon 706E of the mailbox corresponds to the option 706F of the contact "Mark”.
  • Contact options can be used to monitor user operations (such as click operations, touch operations, etc.).
  • the sender 101 can respond to the user operations detected on the contact options and pass the file selected by the user in the corresponding application. hishare" is sent to the contact corresponding to the contact option.
  • the sender 101 may also display a user interface for displaying communication records between the user and the contact in response to a user operation detected on the contact option, and display the file transfer record in the user interface .
  • a user interface for displaying communication records between the user and the contact in response to a user operation detected on the contact option, and display the file transfer record in the user interface .
  • the user interface used to display the communication records between the user and the contact please refer to the user interface 63 shown in FIGS. 6E-6H, and the file transfer record may refer to the file transfer record 314 in FIGS. 6E-6H, which will not be repeated here. .
  • the sender 101 can directly display the contact options in one or more applications, so that the user can directly share the file to the corresponding contact by selecting the contact option. This method is intuitive and simple for users, and can improve user experience.
  • the sending end 101 may display a menu 604 in the user interface 61 after the user selects a file.
  • the menu 604 includes a "hishare file transfer" option 604A.
  • the "hishare file transfer" option 604A can receive a user operation, and the sender 101 can display a window 605 in response to the user operation, so that the user can select an application to share the file.
  • the sender 101 may display a menu that does not include the "hishare file transfer" option in the user interface after the user selects a file.
  • the sender can send the file to the device associated with the contact through "hishare”.
  • FIGS. 7D-7E show the user interface implemented on the sender under extension 2.
  • FIGS. 6B-6C in the file sharing process shown in FIGS. 6A-6H can be replaced with FIGS. 7D-7E.
  • FIG. 7D exemplarily shows the menu 707 displayed on the user interface 71 after the user selects a file by the sending terminal 101.
  • the difference between FIG. 7D and FIG. 6B is that the menu 707 of the user interface shown in FIG. 7D does not include the "hishare file transfer" option, but includes an option 707A for sharing pictures and/or videos.
  • Option 707A is used to monitor user operations (such as click operations, touch operations, long-press operations, etc.), and the sending end 101 may display a window 708 in the user interface shown in FIG. 7E in response to the user operation detected on option 707A.
  • the sending end 101 may also enable the "hishare" in response to the user operation detected on the option 707A.
  • the window 708 may include: prompt information 708A, one or more service options such as icon 708B, icon 708C, icon 708D, icon 708E.
  • the prompt message 708A is used to prompt the user to select a way to share the file.
  • the application or protocol corresponding to the service option can support sharing the file selected by the user to other devices.
  • the sender 101 in response to an operation (such as a touch operation, a click operation) detected on a service option, the sender 101 may trigger to share the selected file to other devices through the application or protocol corresponding to the service option the process of. For example, in response to an operation detected on the icon 708B, the sender 101 may start the application "Hi Chat", and display the user interface shown in FIG.
  • the selected file is sent to the device associated with the contact corresponding to the contact option.
  • the device associated with the contact is referred to as the receiving end 102 in the following embodiment.
  • the sending end 101 sends the selected file to the receiving end 102 through the application, it can be sent according to any one of the following strategies:
  • the sending end 101 determines that it can transfer files with the receiving end 102 through "hishare", it directly sends the picture and/or video selected by the user to the receiving end 102. If the sending end 101 determines that the file cannot be transferred with the receiving end 102 through “hishare”, it will send the pictures and/or videos selected by the user to the receiving end 102 through 3G, LTE, 5G and other cellular technologies or Wi-Fi technology.
  • the sending end 101 determines the total size of the file selected by the user, and if the total size exceeds the first threshold, it sends the file selected by the user to the receiving end 102 through "hishare". If the total size does not exceed the first threshold, the sending end 101 sends the file selected by the user to the receiving end 102 through 3G, LTE, 5G, or other cellular technology or Wi-Fi technology.
  • the sending end 101 asks the user whether to send the file selected by the user to the receiving end 102 through "hishare", and when it detects the user's operation instructing to send the selected file through "hishare", it passes "hishare”
  • the file selected by the user is sent to the receiving terminal 102.
  • the sending end 101 may output visual interface elements, voices, etc. displayed on the display screen to ask the user whether to send the selected file to the receiving end 102 through “hishare”. This strategy can enable the sending end 101 to send pictures and/or videos through "hishare” according to user requirements.
  • Scenario 3 The user chooses a group to share files
  • a group refers to a group of one or more contacts in an application. Users can communicate with one or more contacts in the group in a group.
  • Figures 8A-8B show an embodiment in which a user selects a group in an application.
  • the user interface 81 shown in FIG. 8A is the same as the user interface 31 shown in FIG. 3A, and reference may be made to related descriptions.
  • the user interface 82 shown in FIG. 8B is similar to the user interface 32 shown in FIG. 3B, except that the user interface 82 is used to display the communication records 802 of the associated users of the sending end 101 and the contacts in the group "workgroup". .
  • the user interface 82 includes: a current page indicator 801, a communication record 802 (the communication record shown in FIG. 8B is empty), a control 803, and some other controls. among them:
  • the current page indicator 801 is used to indicate the current page, for example, the text information "workgroup” is used to indicate that the current page is a page for communication between the associated user of the sending end 101 and the group "workgroup”.
  • the control 803 can be used to monitor user operations, and the sender 101 can display more functional service options in response to user operations on the control 803, such as options for taking pictures, options for sending the current location of the sender 101, etc. Wait.
  • Figures 8C-8E show an embodiment in which the user selects a group in the application and then selects a file to share with the contacts in the group.
  • FIG. 8C exemplarily shows a plurality of function service options displayed by the sending end 101 in response to a user operation detected on the control 803 in the user interface 82 shown in FIG. 8B.
  • the multiple function service options include a "hishare file transfer” option 804.
  • the “hishare file transfer” option “hishare file transfer” option 804 can refer to the “hishare file transfer” option “hishare file transfer” option 310 in FIG. 3C.
  • FIG. 8D exemplarily shows a user interface 83 on the sending end 101 for displaying one or more files stored by the sending end 101.
  • the user interface 83 may refer to the user interface 33 shown in FIG. 3D.
  • Fig. 8E exemplarily shows an embodiment in which the user shares the selected file with the contacts in the group "workgroup" in the first application.
  • the user interface shown in FIG. 8E refer to FIG. 3E and related descriptions.
  • the sending end 101 can detect on the user interface 83 a user operation for sharing the selected file to the contacts in the group "workgroup", and the user operation can be applied to the control 805.
  • the sender 101 can respond to the user operation and share the file selected by the user to the device associated with the contact in the group "workgroup” in the first application. .
  • the sender 101 shares the file selected by the user to the device associated with the contact in the group "workgroup” in the first application there are several ways:
  • the sending terminal 101 sends the file selected by the user to all the devices associated with the contacts in the group "workgroup". For example, assuming that the group “workgroup” contains the contact "Kate” and the contact "Mac", the sender 101 can send the file selected by the user to the device associated with the contact "Kate” and the contact "Mac” "Associated device.
  • the sender 101 first sends the file selected by the user to the devices associated with some contacts in the group "workgroup”, and then the sender 101 and the device that has received the file jointly send the file to the group"
  • the sender 101 first sends the file selected by the user to the device associated with some contacts in the group "workgroup”, and then the device that has received the file (ie, the device associated with some contacts) sends the file again Forward to the device associated with the contact in the group "workgroup” who has not received the file.
  • the device associated with the part of the contact is a device that can transfer files with the sender 101 through “hishare”.
  • the sender 101 can first send the file selected by the user to the device associated with the contact "Kate” via "hishare” , And then the device associated with the contact “Kate” sends the received file to the device associated with the contact "Mac” via "hishare”.
  • the sender 101 can transfer files via "hishare” to the device associated with the contact "Kate”, but cannot transfer files via "hishare” to the device associated with the contact "Mac", and the contact "Kate”
  • the associated device and the device associated with the contact "Mac” can transfer files through "hishare”.
  • the method (2) can improve the efficiency of file sharing and enhance the user experience.
  • Figures 8F-8I show a user interface on the sending end 101 for feedback of the file transmission status.
  • the sender 101 shares the file selected by the user to the group "workgroup” in the first application.
  • the sending end 101 can display the file transfer record 806 in the communication record 802 shown in the user interface 82.
  • the file transfer record 806 may include: the avatar of the associated user of the sending end 101, the thumbnail or name of one or more files selected by the user, and prompt information 807.
  • the prompt message 807 is used to indicate the transmission status of the file selected by the user to each contact in the group "workgroup".
  • the transmission state of the file that the user has selected to be transmitted to each device can be any one of the following: the first transmission state, the second transmission state, the third transmission state, and the fourth transmission state.
  • the prompt information 807 corresponding to each transmission state please refer to the related description of the file transmission state in the embodiment of FIG. 3F-3I, which will not be repeated here.
  • the UI embodiment shown in FIGS. 8A to 8I also has corresponding related extensions.
  • the sender 101 may display the "hishare file transfer" option after determining that the device associated with the contact in the group "workgroup” transmits files through "hishare”. "Option 804.
  • the sender 101 may determine that the device that can be associated with the contact in the group "workgroup” transmits files through "hishare", and then displays that it can receive user operations
  • the "hishare file transfer” option "hishare file transfer” option 804.
  • these related extensions please refer to the related description in scenario 1, which will not be repeated here.
  • the user interface implemented on the receiving end 102 is described below.
  • the receiving end 102 is the end that receives the file.
  • the receiving end 102 may be a device associated with the contact selected by the associated user of the sending end 101 in the first application, for example, the device associated with the contact "Kate" in the embodiment of FIG. 3A-3I .
  • the receiving end 102 may include a device associated with a contact in the group selected by the associated user of the sending end 101 in the first application, for example, the group "workgroup” in the embodiment of FIG. 8A-8I. Device associated with each contact in ".
  • 9A-9D exemplarily show the user interface displayed on the receiving end 102.
  • FIG. 9A shows the notification window 901 displayed by the receiving end 102 in the user interface 91 after the sending end 101 sends the file selected by the user to the receiving end 102.
  • the user interface 91 may be the main interface.
  • the notification window 901 can be used to notify the user that the sending terminal 101 wants to transfer a file to the receiving terminal 102 through "hishare", and to ask the user whether to receive the file.
  • the notification window 901 may include: an application program identification 901A, a prompt message 901B, a control 901C, and a control 901D. among them:
  • the application identifier 901A is used to indicate the application used when the associated user of the receiving end 101 shares a file.
  • the implementation form of the application program identifier 901A may include an icon, text (for example, the text message "Hi Chat") and so on.
  • the prompt information 901B is used to indicate the user who initiated the file sharing (for example, the user "Lisa") and file information (for example, the number, size, type, etc. of the file).
  • the prompt information 901B can be implemented in text.
  • the control 901C can be used to monitor user operations.
  • the receiving end 102 refuses to receive the file sent by the sending end 101.
  • the control 901D can be used to monitor user operations.
  • the receiving end 102 starts to receive the file sent by the sending end 101, and jumps to display the associated user (such as the contact "Kate") and the sending end 101 used to display the receiving end 102
  • the user interface 92 of the communication records between associated users (for example, the user "Lisa").
  • the user interface may be provided by a first application.
  • the first application is an application for an associated user of the sending end 101 to initiate file sharing, and the first application is also an application for the receiving end 102 to receive files.
  • the user interface 92 may include: a page indicator 902 and a communication record 903. among them:
  • the page indicator 902 is used to indicate that the current page is used to display the communication records between the associated user of the receiving end 102 (for example, the contact "Kate") and the associated user of the sending end 101 (for example, the user "Lisa”).
  • the communication record 903 may include a file transfer record 904.
  • the file transfer record 904 may include: the avatar of the associated user of the sending end 101, the thumbnails or names of one or more files selected by the user on the sending end 101, and prompt information 905.
  • the prompt message 905 is used to prompt the user of the transmission status of the received file.
  • the prompt information 905 can be used to prompt the user that the file transmission state is the second transmission state.
  • the prompt information 905 can be used to prompt the user that the file transmission state is the third transmission state.
  • the prompt information 905 can be used to prompt the user that the file transmission state is the fourth transmission state.
  • the receiving end 102 can prompt the associated user of the receiving end 102 (ie, the contact selected by the user in the above-mentioned embodiment) when a user shares a file for the The associated user chooses whether to receive the file.
  • the notification window 901 exemplarily shown in FIG. 9A may not be displayed on the main interface but displayed on other user interfaces.
  • the notification window 901 may also be displayed on the sending end 101.
  • the setting interface, the video interface, etc., are not limited in the embodiment of the present application.
  • the notification window 901 shown in FIG. 9A is not necessary.
  • the receiving end 102 may not display the notification window 901.
  • the sending end 101 sends a file to the receiving end 102 via "hishare"
  • the receiving end 102 directly receives the file from the sending end 101. It is understandable that whether the receiving end 102 displays the notification window 901 can be independently set by the associated user of the receiving end 102, for example, the associated user of the receiving end 102 can set it in the setting interface provided by the receiving end 102.
  • control 901D in the notification window 901 displayed by the receiving terminal 102 may be referred to as the fourth operation option.
  • the operation received by the receiving end 102 on the control 901D may be referred to as a ninth operation.
  • the user interface displayed on the receiving end 102 for displaying communication records between users may be referred to as the seventh user interface.
  • the communication system 1000 may include a plurality of electronic devices such as electronic device 1001, electronic device 1002, electronic device 1003, electronic device 1005,..., Electronic device 100n, etc., and server 1004.
  • the device associated with the user Lisa may be the electronic device 1001
  • the device associated with the user Kate may be the electronic device 1002
  • the device associated with the user Mac may be the electronic device 1003.
  • Multiple electronic devices include a sending end and a receiving end.
  • the sending end is the end that initiates file sharing
  • the receiving end is the end that receives the file.
  • the electronic device 1001 associated with user Lisa is the sending end
  • the electronic device 1002 associated with user Kate is the receiving end as an example for description.
  • the electronic device 1001 may also be referred to as the transmitting end 1001
  • the electronic device 1002 may also be referred to as the receiving end 1002.
  • the sending end 1001 may be the sending end 101 mentioned in the foregoing embodiment.
  • the sending end 1001 may be implemented as the electronic device 100 exemplarily shown in FIGS. 1A and 1B.
  • the sending end 1001 has one or more of a Bluetooth (BT) module, an NFC module, and a WLAN module.
  • the sender 1001 can detect or scan devices near the sender 1001 through one or more of the Bluetooth (BT) module, NFC module, and WLAN module, so that the sender 1001 can use one of Bluetooth, NFC or WLAN Or multiple wireless communication technologies to discover nearby devices (such as nearby mobile phones, tablets, etc.), and establish a wireless communication connection with the receiving end 1002 in the nearby devices, through one or more wireless communication technologies in Bluetooth or WLAN Share the file to the receiving end 1002.
  • the Bluetooth (BT) module can provide solutions including one or more of Bluetooth communication in classic Bluetooth (Bluetooth 2.1) or Bluetooth Low Energy (BLE).
  • the WLAN module can provide one or more WLAN communication solutions including Wi-Fi direct, Wi-Fi LAN, or Wi-Fi softAP.
  • the receiving end 1002 may be the receiving end 102 mentioned in the foregoing embodiment.
  • the receiving end 1002 may be implemented as the electronic device 100 exemplarily shown in FIGS. 1A and 1B.
  • the receiving end 1002 has one or more of a Bluetooth (BT) module, an NFC module, and a WLAN module.
  • the receiving end 1002 may receive or transmit wireless signals through one or more of a Bluetooth (BT) module, an NFC module, and a WLAN module.
  • the Bluetooth (BT) module can provide solutions including one or more of Bluetooth communication in classic Bluetooth (Bluetooth 2.1) or Bluetooth Low Energy (BLE).
  • the WLAN module can provide one or more WLAN communication solutions including Wi-Fi direct, Wi-Fi LAN, or Wi-Fi softAP.
  • the sending end 1001 and the receiving end 1002 are both installed with the same one or more applications, for example, a first application program may be installed.
  • the application may be, for example, an instant messaging application, a mailbox application, and so on.
  • the server 1004 is a server used to provide services for a certain application installed in the sending end 1001 and the receiving end 1002.
  • the server 1004 may be a server providing services for the first application.
  • the server 1004 provides various services for the sending end 1001 and the receiving end 1002 through application communication, such as communication record backup service, computing service, connection service, and so on.
  • the server 1004 may associate and store the identification of the user who has registered the first application program and the device identification of the associated device of the user. After the user registers the first application, he can use his user ID and password to log in to the first application on the device.
  • the user's associated device refers to the device currently used when the user logs in to the application.
  • User identification may include, but is not limited to: account number, avatar, nickname, name, face image, Huawei logo (identity, ID), etc.
  • the device identifier may include a media access control (MAC) address, an internet protocol (Internet protocol, IP) address, etc., which may indicate a unique device identifier.
  • MAC media access control
  • IP internet protocol
  • Table 1 exemplarily shows several user IDs and device IDs that are associated and stored in the server 1004.
  • the associated user A. Lisa of the sending end 1001 can use the user ID and password when registering the application to log in to the application on the sending end 1001. Obviously, after the associated user A. Lisa of the sending end 1001 logs in to the application, the sending end 1001 can learn that the user identification of the associated user A. Lisa in the application is "Lisa". In addition, the sender 1001 can also obtain the user ID of the contact of the associated user in the application from the previously stored information or from the server 1004. For example, one of the contacts of the associated user A. Lisa of the sender in the application is J .Kate, the user ID of the contact J.Kate is "Kate".
  • the associated user J. Kate of the receiving end 1002 can also use the user ID and password when registering the application to log in to the application on the receiving end 1002. Obviously, after the associated user J.Kate of the receiving end 1002 logs in to the application, the receiving end 1002 can learn that the user identifier of the associated user J.Kate in the application is "Kate". In addition, the receiving end 1002 can also obtain the user ID of the contact of the associated user in the application from the previously stored information or from the server 1004. For example, one of the contacts of the associated user J.Kate of the receiving end in the application is A. .Lisa, the user ID of contact A.Lisa is "Lisa”.
  • the sending end 1001 and the server 1004 can be connected by 3G, LTE, 5G and other cellular mobile communication technologies, LAN or WAN communication technologies, which can facilitate the server 1004 to forward the data sent by the sending end 1001 to the receiving end 1002.
  • the receiving end 1002 and the server 1004 can be connected by LAN or WAN communication technology, which can facilitate the server 1004 to forward the data sent by the receiving end 1002 to the sending end 1001.
  • the sending end 1001 can discover nearby devices through one or more of Bluetooth, NFC, and WLAN wireless communication technologies.
  • the nearby devices can include, for example, electronic devices 1002, electronic devices 1003, and electronic devices 1005. ,..., electronic equipment 100n and so on.
  • the sending end 1001 can determine the device associated with the contact selected by the user in the application among nearby devices, that is, determine the receiving end.
  • the contact selected by the user is "Kate”
  • the associated device of the contact "Kate” that is, the electronic device 1002 is the receiving end
  • the other devices such as electronic device 1003, electronic device 1005,..., electronic device 100n, etc. are not the receiving end .
  • the sending end 1001 can send the file selected by the user to the receiving end 1002 through "hishare" in the first application. That is, the sending end 1001 can use one or more of Bluetooth, NFC, and WLAN to transfer the file to the receiving end 1002.
  • the file selected by the user is shared to the device associated with the contact, that is, the receiving end 1002.
  • the sending end 1001 and the receiving end 1002 can quickly share files to other nearby devices in the application, without consuming the cellular data traffic of the receiving end and the sending end, and reducing the load of the server 1004.
  • the size of the file shared by the sending end 1001 to the receiving end 1002 is not limited, that is, the sending end 1001 can share a larger file to the receiving end 1002.
  • the structure shown in this embodiment does not constitute a specific limitation on the communication system 1000.
  • the communication system 1000 may include more or less devices than shown.
  • the communication system 1000 may also include other mobile phones, tablet computers, and other one or more servers having one or more of a Bluetooth (BT) module and a WLAN module.
  • BT Bluetooth
  • WLAN Wireless Local Area Network
  • the expansion can include:
  • Step 1 The sending end 1001 displays a first user interface.
  • the first user interface may display the communication records of the associated user of the sending end 1001 and the selected contact in the first application.
  • the first user interface may be a user interface provided by the first application program.
  • the first application program may be, for example, an instant messaging application, a mailbox application, and the like.
  • the first user interface is used to display the communication records of the associated user of the sending end 1001 and the selected contact in the first application.
  • the first user interface may refer to the user interface 32 in FIG. 3B.
  • Step 2 The sending end 1001 may detect in the first user interface the operation for viewing the file stored in the sending end 1001, and in response to the operation for viewing the file stored in the sending end 1001, the second user interface is displayed.
  • the second user interface is used to display one or more files stored by the sending end 1001. For the second user interface, refer to the user interface 33 in FIG. 3D.
  • the "hishare" file sharing option 310 included in the first user interface may be referred to as the first operation option.
  • the operation for viewing the file stored in the sending end 1001, that is, the operation received by the sending end 1001 on the first operation option, may be referred to as the first operation.
  • Step 3 The sending end 1001 can detect the user operation of sharing the selected file to the contact in the second user interface. In response to the user operation of sharing the selected file to the contact, the sending end 1001 passes "Hishare” sends the selected file to the associated device of the contact (ie, the receiving end 1002). The process of sending the selected file to the receiving end 1002 by the sending end 1001 through "hishare" does not completely pass through the server 1004.
  • the selected file may be referred to as the first file.
  • the second user interface may include a first identifier and a second identifier, the first identifier corresponds to the first file, and the second identifier corresponds to the second file stored in the sending end 1001.
  • the operation of the user to select a file that is, the operation received by the sending end 1001 on the first identifier, may be referred to as the second operation.
  • the user operation of sharing the selected file to the contact may be referred to as the third operation.
  • the option 312B included in the second user interface may be referred to as a second operation option.
  • the third operation may be an operation received by the sending end 1001 on the second operation option.
  • the sending end 1001 can send the file to the receiving end 1002 through “hishare”.
  • the process of transferring files to other nearby devices through "hishare” can be independent of the communication connection between the sender 1001 and the server. In this way, the sender 1001 can quickly transfer files to other surrounding devices in the application, and optimize the user experience.
  • the sender 1001 uses cellular data traffic, it can also save the cellular data traffic consumed by the sender 1001 and reduce the server’s cost. load.
  • the size of the file shared by the sending end 1001 to the receiving end 1002 is not limited, that is, the sending end 1001 can share a larger file to the receiving end 1002.
  • FIG. 10B shows the flow of the method for transferring files in the application in the first scenario.
  • the method may include:
  • the sending end 1001 can detect the operation for opening "hishare”.
  • the operation for opening "hishare” may be a click operation or touch operation detected by the sending end 1001 that acts on the switch control 202A of "hishare" in the window 202. Operation and so on.
  • turning on “hishare” may refer to turning on one or more of the Bluetooth module, NFC module, and WLAN module of the sending end 1001.
  • the sender 1001 can discover the vicinity of the sender 1001 through one or more of NFC, Bluetooth, Wi-Fi direct connection (such as Wi-Fi p2p), Wi-Fi softAP, and Wi-Fi LAN. device of.
  • S1001-S1002 may be optional steps, and the user may also select a contact who shares the file in the application and trigger the sender 1001 to start "hishare". In other words, it is not necessary to turn on "hishare" in advance.
  • the sending end 1002 starts the first application and displays the first user interface.
  • the first user interface may display the communication records of the associated user of the sending end 1002 and the selected contact in the first application.
  • the first user interface may be a user interface provided by the first application program.
  • the first application program may be, for example, an instant messaging application, a mailbox application, and the like.
  • the first user interface is used to display the communication records of the associated user of the sending end 1002 and the selected contact in the first application.
  • the exemplary implementation of the first user interface may refer to the user interface 32 shown in FIG. 3B or FIG. 3C, the user interface 32 shown in FIG. 4B or FIG. 4C, the user interface 32 shown in FIG. 4D or FIG. 4E or FIG. 4F, The user interface 52 shown in FIG. 5B or FIG. 5C.
  • the first user interface may be displayed in the following manner:
  • the sender 1001 displays a user interface provided by the first application program displaying one or more contact options.
  • a user interface provided by the first application program displaying one or more contact options.
  • the user interface refer to the user interface 31 shown in FIG. 3A or the user interface shown in FIG. 5A. Interface 51.
  • the sender 1001 detects a user operation for selecting a contact.
  • the operation for selecting a contact may be: a click operation, touch operation, etc., that acts on a contact option detected by the sender 1001.
  • the contact option The corresponding contact is the selected contact;
  • the sending end 1001 displays the first user interface in response to the detected operation for selecting a contact.
  • the first user interface displays the communication records of the associated user of the sending end 1001 and the selected contact in the first application.
  • S1004 While the sending end 1001 displays the first user interface, it turns on "hishare”. S1004 is an optional step, and the user can also trigger the sending end 1001 to enable "hishare" in advance, please refer to S1001-S1002. The user can also trigger the sender 1001 to turn on "hishare” later, refer to S1006.
  • the sending end 1001 may detect an operation for viewing the file stored in the sending end 1001 in the first user interface.
  • the operation for viewing files stored in the sending end 1001 may be, for example, user operations (such as click operations, touch operations, etc.) acting on the "hishare file transfer" option 310 in the user interface 32 shown in FIG. 3C, and acting on User operations (such as click operations, touch operations, etc.) on the "hishare file transfer” option 310 in the user interface 32 shown in FIG. 4C, and actions on the "hishare file transfer” option 310 in the user interface 32 shown in FIG. 4F
  • User operations for example, click operations, touch operations, etc.
  • user operations for example, click operations, touch operations, etc. acting on the "photo” option 501 in the user interface 52 shown in FIG. 5C.
  • S1006 In response to the detected operation for viewing the file stored in the sending end 1001, the sending end 1001 turns on "hishare". S1006 is an optional step, and the user can also trigger the sending end 1001 to enable "hishare" in advance. You can refer to S1001-S1002, or refer to S1004.
  • S1007 In response to the operation for viewing the file stored in the sending end 1001 detected in the first user interface, the sending end 1001 displays the second user interface.
  • the second user interface displays: the identification of one or more files stored by the sending end 1001.
  • the second user interface is used to display one or more files stored by the sending end 1001.
  • the identification of one or more files stored by the sending end 1001 is displayed in the second user interface.
  • the files stored in the sending end 1001 may include, but are not limited to: pictures, audios, videos, documents, links, and so on.
  • the identification of the file can be the thumbnail, name, etc. of the file.
  • the achievable form of the second user interface can refer to the user interface 33 shown in FIG. 3D and the user interface 53 shown in FIG. 5D.
  • the achievable form of the identification of the file can refer to the thumbnail or name of the file in the file area 313 shown in FIG. 3D, and the thumbnail of the file in the file area 504 shown in FIG. 5D.
  • the embodiment of this application does not limit the sequence of S1008 and S1007.
  • the sending end 1001 can execute S1007 and S1008 at the same time, or execute S1007 first, or execute S1008 first.
  • the sending end 1001 determines the device associated with the contact among the discovered nearby devices, that is, the receiving end 1002 is determined.
  • the sending end 1001 determines the specific implementation of the receiving end 1002 in nearby devices, and the subsequent content will be described in detail, and will not be repeated here.
  • the sending end 1001 may detect a user operation of sharing the selected file to the contact in the second user interface.
  • the selected files may include one or more of the following: selected pictures, selected documents, selected web pages, selected audios, selected links, and so on.
  • the user operation for sharing the selected file to the contact may be, for example, a user operation on the control 312B in FIG. 3E, a user operation on the control 503B in FIG. 5E, and the like.
  • the manner in which the sender 1001 determines the selected file and the user operation of sharing the selected file to the contact can refer to the relevant description in the aforementioned UI embodiment, which will not be repeated here.
  • S1011-S1016 In response to the user operation of sharing the selected file to the contact, the sending end 1001 sends the selected file to the associated device of the contact (ie, the receiving end 1002) through "hishare". The process of sending the selected file to the receiving end 1002 by the sending end 1001 through "hishare" does not completely pass through the server 1004.
  • the sending end 1001 can establish a communication connection with the receiving end 1002.
  • the sending end 1001 can establish a Bluetooth communication connection, a Wi-Fi direct communication connection (such as a Wi-Fip2p connection), a SoftAP connection, and the like with the receiving end 1002. Specifically, the sending end 1001 may send a connection establishment request to the receiving end 1002 according to the device identifier of the receiving end 1002, and the receiving end 1002 may return a response that the connection establishment is successful to the sending end 1001.
  • the information required when the sender 1001 and the receiver 1002 establish a connection can be negotiated by the sender and receiver after the device associated with the contact is determined in S1008-S1009.
  • the sending end and the receiving end establish a Wi-Fi direct communication connection in S1011
  • the sending end 1001 can discover nearby devices through Bluetooth in S1008, and after determining the receiving end 1002 in S1009, establish Bluetooth communication with the receiving end 1002 Connect, and send a service set identifier (SSID) and password required for establishing a Wi-Fi direct communication connection to the receiving end 1002 through the Bluetooth communication connection.
  • the receiving end 1002 connects to the sending end 1001 according to the SSID and password, so that the receiving end 1001 and the sending end 1002 can successfully establish a Wi-Fi direct communication connection.
  • S1011 is an optional step. If the sending end 1001 and the receiving end 1002 are in the same LAN, the sending end 1001 can directly transmit the selected file to the receiving end 1002 according to the device identification of the receiving end 1002 without establishing a communication connection.
  • the sender 1001 when the sender 1001 transmits the selected file through one or more of the wireless communication technologies of Bluetooth, Wi-Fi direct connection (such as Wi-Fi p2p), and Wi-Fi softAP, the sender 1001 needs to establish a communication connection with the receiving end 1002 after determining the receiving end 1002.
  • the sending end 1001 transmits the selected file through Wi-Fi LAN wireless communication technology
  • the sending end 1001 and the receiving end 1002 are already in the same LAN, the file can be transferred directly.
  • the sending end 1001 may send a file sharing request to the receiving end 1002.
  • the file sharing request is used to request the receiving end 1002 to receive the file shared by the sending end 1001.
  • the sending end 1001 may send a file sharing request to the receiving end 1002 through an established communication connection (such as a Bluetooth communication connection and/or a Wi-Fi direct communication connection), or to the receiving end 1002 through a LAN or NFC. Send a file sharing request.
  • an established communication connection such as a Bluetooth communication connection and/or a Wi-Fi direct communication connection
  • the sending end 1001 may send the file sharing request to the server 1004 through a communication connection with the server 1004, and the server 1004 sends the file sharing request to the receiving end 1002.
  • the file sharing request may carry the user identification of the selected contact, and the server 1004 may determine the user identification of the selected contact in the data stored in its own association with the user identification of the selected contact.
  • the user ID of is associated with the stored device ID, that is, the device ID of the receiving end 1002 is determined, and the file sharing request is sent to the receiving end 1002.
  • the file sharing request may carry the device identification of the receiving end 1002, and the server 1004 may directly send the file sharing request to the receiving end 1002 according to the device identification of the receiving end 1002.
  • Sending the file sharing request through the server allows the server 1004 to learn and record the current file transfer event between the sending end 1001 and the receiving end 1002.
  • the file sharing request may also carry instruction information.
  • the instruction information can be used to indicate the size, type, etc. of the shared file.
  • S1013 The sending end 1001 displays a prompt message.
  • the prompt information may prompt the current file transmission status of the associated user of the sending end 1001.
  • the prompt information is used to prompt the transmission state of the current file of the associated user of the sending end 1001 to be the first transmission state.
  • the first transmission state may mean that the selected file is waiting to be received by the receiving end 1002.
  • prompt information refer to the prompt information 315 in FIG. 3F and the prompt information 506 in FIG. 5F.
  • the receiving end 1002 may display a notification window.
  • the notification window is used to ask the associated user of the receiving end 1002 whether to accept the file sharing request from the sending end 1001, that is, to ask the user whether to receive the selected file.
  • the notification window refer to the notification window 901 in FIG. 9A.
  • the user operation for receiving the file sharing request from the sending end 1001 may be an operation acting on the control 901D in the window 901 of FIG. 9A.
  • the receiving end 1002 may send a sharing request response to the sending end 1001 through an established communication connection (such as a Bluetooth communication connection and/or a Wi-Fi direct communication connection), or to the sending end 1001 through a LAN or NFC. Send response to sharing request.
  • the receiving end 1002 may send the sharing request response to the server 1004 through a communication connection with the server 1004, and the server 1004 sends the sharing request response to the sending end 1001.
  • S1015 may not be necessary.
  • the sending end 1001 sends a file sharing request to the receiving end 1002
  • the receiving end 1002 can directly return the sharing request response, and the file from the sending end 1001 can be received without user intervention.
  • the sending end 1001 may send the file selected by the user to the receiving end 1002 through an established communication connection (such as a Bluetooth communication connection and/or a Wi-Fi direct communication connection), or through a LAN.
  • an established communication connection such as a Bluetooth communication connection and/or a Wi-Fi direct communication connection
  • the sending end 1001 transmits files in the application to other nearby devices, namely the receiving end 1002, without relying on the communication connection between the sending end 1001 and the server 1004, and the file can be quickly transferred to the receiving end 1002 in the application.
  • the cellular data traffic consumed by the sender 1001 can also be saved, and the load on the server can be reduced.
  • the sending end 1001 transmits files in the application to other nearby devices, namely the receiving end 1002, the process does not rely on the communication connection between the sending end 1001 and the server 1004, and the size of the file shared by the sending end 1001 to the receiving end 1002 is not affected. Restriction, that is, the sending end 1001 can share larger files to the receiving end 1002.
  • the sending end 1001 can also combine an established communication connection (such as a Bluetooth communication connection and/or Wi-Fi direct communication connection)/LAN at the same time, and the communication connection between the sending end 1001 and the server will be The file selected by the user is sent to the receiving end 1002.
  • an established communication connection such as a Bluetooth communication connection and/or Wi-Fi direct communication connection
  • the sending end 1001 may simultaneously combine an established communication connection (such as a Bluetooth communication connection and/or a Wi-Fi direct communication connection)/LAN when the file selected by the user is greater than the second threshold.
  • the communication connection between the sending end 1001 and the server sends the file selected by the user to the receiving end 1002.
  • the sending end 1001 can divide the file selected by the user into two parts, and send a part of the file through the established communication connection (such as Bluetooth communication connection and/or Wi-Fi direct communication connection)/LAN, and pass it between the server and the server.
  • the communication link sends another part of the file.
  • the embodiment of the present application does not limit the manner in which the sending end 1001 divides the file into two parts.
  • the sending end 1001 may send the selected file to the receiving end 1002 through an AIDL calling function (for example, PreSend Send).
  • AIDL calling function for example, PreSend Send
  • S1012-S1015 may not be necessary. That is, the sending end 1001 may directly send the selected file to the device associated with the contact after detecting the user operation of sharing the selected file to the contact.
  • the receiving end 1002 may display a prompt message during the file transfer process, or may display the prompt message after the file transfer ends.
  • the prompt information can be used to prompt the file transmission status of the associated user (ie, the selected contact) of the receiving end 1002.
  • the receiving end 1002 may feed back the transmission status of the file to the sending end 1001 during the file transmission process, and may also feedback the transmission status of the file to the sending end 1001 after the file transmission is completed.
  • the sending end 1001 may also display a prompt message to prompt the transmission status of the associated user file of the sending end 1001.
  • the sending end 1001 may call a function (for example, onTransStateChange) through AIDL to obtain the transmission state of the file.
  • the receiving end 1002 may call a function (for example, OnProgress) through AIDL to obtain the transmission status of the file.
  • the file transfer status may include, but is not limited to:
  • the second transmission state may mean that the selected file is being transmitted to the receiving end 1002.
  • the third transmission state may mean that the selected file is successfully transmitted to the receiving end 1002.
  • the fourth transmission state may mean that the selected file has not been successfully transmitted to the receiving end 1002.
  • the prompt information displayed by the receiving end 1002 may refer to: one or more of the prompt information 905 in the file transfer record 903 shown in FIGS. 9B to 9D exemplarily.
  • the prompt information 905 reference may be made to the relevant content and extensions in the embodiments of FIGS. 9B to 9C, which will not be repeated here.
  • the prompt information displayed by the sending end 1001 may refer to: one or more of the prompt information 315 in the file transfer record 314 shown in FIG. 3G-FIG. 3I, or the prompt information 315 in FIG. 5G-FIG.
  • the prompt information 315 reference may be made to the relevant content and extensions in the embodiments of FIGS. 3G-3I, which will not be repeated here.
  • the prompt information 506 please refer to the related content and extensions in the embodiments of FIGS. 5G-5I, which will not be repeated here.
  • the prompt information displayed by the sending end 1001 may be displayed in the third user interface.
  • the third user interface For an exemplary implementation of the third user interface, reference may be made to the user interface shown in any one of FIG. 3F-FIG. 3I and FIG. 5F-FIG. 5I.
  • the sending end 1001 and the receiving end 1002 can also stop other methods to prompt the file transmission status, for example, it can also be prompted by playing a voice, etc.
  • the application embodiment does not limit this.
  • S1017-S1019 may not be necessary. In other words, both the receiving end and the sending end do not need to feed back the transmission status of the file.
  • the devices near the sending end 1001 can perform Bluetooth broadcasting, that is, send Bluetooth broadcast packets; the sending end 1001 can perform Bluetooth scanning to scan broadcast packets broadcast by nearby devices.
  • the broadcast packet may carry the device identification of the device.
  • the Bluetooth broadcast packet sent by the electronic device 1002 carries the device identification of the electronic device 1002
  • the Bluetooth broadcast packet sent by the electronic device 1003 carries the device identification of the electronic device 1003.
  • the sending end 1001 can discover nearby devices according to the device identifiers in the scanned broadcast packet, for example, discover nearby electronic devices 1002 and electronic devices 1003.
  • the broadcast packet may also carry the user identification of the associated user of the device in the application installed on the device.
  • the broadcast packet sent by the electronic device 1002 carries the user identification of the user "Kate” in the first application.
  • the broadcast packet sent by the electronic device 1003 carries the user identification of the user "Mac” in the first application, such as the account " Mac", and the user identification of the user "Mac” in the second application, such as the account "Mac”.
  • the user identification in the broadcast packet can be used by the sender 1001 to determine the device associated with the selected contact among nearby devices, that is, to determine the receiver. The subsequent embodiments will describe this process in detail.
  • the sending end 1001 may broadcast a probe request to the outside. After listening to the detection request, nearby devices (such as printers) can respond with a probe response to notify their existence.
  • the probe response may carry the device identification of the device, and may also carry the user identification of the associated user of the device in the application installed on the device.
  • the device identification can refer to the device identification in the Bluetooth broadcast package in mode 1
  • the user identification can refer to the user identification in the Bluetooth broadcast package in mode 1.
  • nearby devices can periodically send out beacon frames.
  • the sender 1001 can discover nearby devices by monitoring the Beacon frames sent by nearby devices.
  • the Beacon frame may carry the device identification of the device, and may also carry the user identification of the associated user of the device in the application installed on the device.
  • the device identification can refer to the device identification in the Bluetooth broadcast package in mode 1
  • the user identification can refer to the user identification in the Bluetooth broadcast package in mode 1.
  • the sending end 1001 can adopt Wi-Fi direct wireless communication technology to actively discover nearby devices or passively discover nearby devices.
  • the sender 1001 can determine the IP address range of the LAN according to its own IP address and subnet mask in the LAN, and then can discover the devices in the LAN by means of unicast polling. Not limited to this, the sender 1001 can also discover the devices in the LAN through broadcast messages or multicast messages in the LAN. After receiving a broadcast message, a multicast message, or a polling message, the device in the LAN can reply its own information to the sender 1001. The information may carry the device identification of the device, and may also carry the user identification of the associated user of the device in the application installed on the device.
  • the device identification can refer to the device identification in the Bluetooth broadcast package in mode 1
  • the user identification can refer to the user identification in the Bluetooth broadcast package in mode 1.
  • the sender 1001 discovers nearby devices.
  • the sender 1001 can also use other methods to discover nearby devices based on wireless communication technologies such as Bluetooth, Wi-Fi Direct, Wi-Fi LAN, or NFC. Equipment, this embodiment of the application does not limit this.
  • the sending end 1001 can use any of the above methods to find nearby devices, and then call a function (for example, OnDeviceFound) through the Android interface definition language (AIDL), so that it can be used in nearby devices. Determine the device associated with the contact.
  • a function for example, OnDeviceFound
  • AIDL Android interface definition language
  • the sending end 1001 determines the device associated with the contact among the discovered nearby devices in detail below, that is, several implementation manners for determining the receiving end 1002:
  • the sender 1001 determines the receiver according to the user ID sent by nearby devices
  • a nearby device may send the user identifier of the associated user of the device in an application installed on the device to the sending end 1001.
  • the sending end 1001 may search for a user ID that is the same as the user ID of the selected contact among the received user IDs. If the user ID that is the same as the user ID of the selected contact is found, the device that sends the user ID is determined as the receiving end.
  • the sending end 1001 may determine that the electronic device 1002 sending the user account "Kate" is the receiving end.
  • the sending end 1001 determines the receiving end through the server 1004 corresponding to the first application
  • the sending end 1001 may send a request to the server 1004, the request carrying the user identification of the selected contact, and the request is used to inquire about the identification of the device that the contact currently uses to log in to the first application. Since the server 1004 stores the identification of the user who registered the first application in association with the device identification of the user's associated device, the server 1004 can find the user identification that is stored in association with the user identification according to the user identification carried in the request. Equipment Identity. After that, the server 1004 may send the found device identification to the sending end 1001. After receiving the device identification sent by the server, the sending end 1001 determines the device represented by the device identification as the receiving end.
  • the sender 1001 may send a request carrying the account "Kate” to the server. After the server 1004 receives the request, it can find the device ID corresponding to the account "Kate” according to the data stored in Table 1, and send the device ID to the sending end 1001. The sending end 1001 may determine the electronic device 1002 represented by the device identifier as the receiving end.
  • the user identification may be a Huawei ID.
  • the Huawei ID may not be directly transmitted between devices, but may be transmitted between devices through the hash values of the Huawei ID.
  • the hash value of the Huawei ID is calculated by the device using a hash function to calculate the Huawei ID.
  • the expansion can include:
  • Step 1 The sending end 1001 displays a fourth user interface, and the fourth user interface is used to display one or more files stored by the sending end 1001.
  • the fourth user interface may be a user interface provided by the second application program.
  • the second application program may be, for example, a gallery, a file manager, a document manager, and so on.
  • the fourth user interface may refer to the user interface 61 shown in FIG. 6A or FIG. 6B.
  • Step 2 The sending end 1001 may detect a user operation for sharing the selected file in the fourth user interface, and in response to the user operation for sharing the selected file, display one or more application options.
  • the selected file may be referred to as the third file.
  • the fourth user interface includes a third identifier and a fourth identifier, the third identifier corresponds to the third file, and the fourth identifier corresponds to the fourth file stored in the sending end 1001.
  • the operation of the user selecting the third file that is, the operation received by the sending end 1001 on the third identifier, may be referred to as the fifth operation.
  • the user operation for sharing the selected file may be referred to as the sixth operation.
  • the "hishare file transfer" option 604A in the fourth user interface may be referred to as the third operation option, and the sixth operation may be received by the sending end 1001 on the third operation option operating.
  • Step 3 The sender 1001 can detect a user operation acting on an application option, and in response to the user operation acting on an application option, a fifth user interface is displayed, and the fifth user interface includes one or more contact options .
  • the user operation acting on the application option may be referred to as the seventh operation.
  • the application option corresponds to the first application.
  • the fifth user interface may be a user interface provided by the first application program.
  • the first application program may be, for example, an instant messaging application, a mailbox application, and the like.
  • the fifth user interface may refer to the user interface 62 shown in FIG. 6D or the user interface 71 shown in FIG. 7B.
  • Step 4 The sending end 1001 can detect the user operation acting on the contact option in the fifth user interface, and in response to the user operation acting on the contact option, the sending end 1001 sends the selected file through "hishare" Give the associated device of the contact corresponding to the contact option (that is, the receiving end 1002). The process of sending the selected file to the receiving end 1002 by the sending end 1001 through "hishare" does not completely pass through the server 1004.
  • the user operation acting on the contact option may be referred to as the eighth operation.
  • the sending end 1001 may also display the sixth user interface in response to the user operation acting on the contact option.
  • the sixth user interface includes: the communication records and prompt information of the first user and the second user in the first application, and the prompt information is used to indicate the transmission status of the third file.
  • the sending end 1001 can send the file to the receiving end 1002 through “hishare”.
  • the process of transferring files to other nearby devices through "hishare" can be independent of the communication connection between the sender 1001 and the server. In this way, the sender 1001 can quickly transfer files to other surrounding devices in the application, optimize the user experience, and can also save the cellular data traffic consumed by the sender 1001 and reduce the load of the server.
  • the sending end 1001 transmits files in the application to other nearby devices, namely the receiving end 1002, the process does not rely on the communication connection between the sending end 1001 and the server 1004, and the size of the file shared by the sending end 1001 to the receiving end 1002 is not affected. Restriction, that is, the sending end 1001 can share larger files to the receiving end 1002.
  • FIG. 10C shows the flow of the method for transferring files in the application in the second scenario.
  • the method may include:
  • S1101-S1102 Turn on "hishare" in advance. For details, refer to S1001-S1002 in the method embodiment of FIG. 10B.
  • S1103 The electronic device displays a fourth user interface, and the fourth user interface displays: the identifier of one or more files stored by the sending end 1001.
  • the fourth user interface may be provided by the second application.
  • the fourth user interface is used to display one or more files stored by the sending end 1001.
  • the identification of one or more files stored by the sending end 1001 is displayed in the fourth user interface.
  • the files stored in the sending terminal 1001 may include, but are not limited to: pictures, audios, videos, documents, links, and so on.
  • the identification of the file can be the thumbnail, name, etc. of the file.
  • the achievable form of the fourth user interface can refer to the user interface 61 shown in FIG. 6A or 6B and the user interface 73 shown in FIG. 7D.
  • the achievable form of the identification of the file can refer to the thumbnail or the name of the file in the file area 603 shown in FIG. 6A.
  • the sending end 1001 may detect an operation for sharing the selected file in the fourth user interface.
  • the selected files can include one or more of the following: selected pictures, selected documents, selected web pages, selected audios, selected links, and so on.
  • An exemplary implementation of the operation for sharing the selected file may include: a user operation acting on the control 604A in the user interface 61 shown in FIG. 6B, and a user operation acting on the control 707A in the user interface 73 shown in FIG. 7D. User operation.
  • S1105 In response to the detected operation for sharing the selected file, the sender 1001 turns on "hishare". S1105 is an optional step, and the user can also trigger the sending end 1001 to enable "hishare" in advance, please refer to S1101-S1102.
  • S1106 In response to the detected operation for sharing the selected file, the sending end 1001 displays one or more application options in the fourth user interface.
  • the application corresponding to one or more application options displayed in the fourth user interface can be all applications installed on the sending end 1001 that can be used to share files, or can be installed on the sending end 1001 that can be used to share files
  • the device associated with the contact can transfer files with the sender 1001 through "hishare" application.
  • the sending end 1001 can detect the operation that acts on the application options
  • S1108 In response to the operation on the application options, the sending end 1001 displays a fifth user interface, and the fifth user interface displays one or more contact options.
  • the fifth user interface may be an application program corresponding to the application option, for example, a user interface provided by the first application program.
  • a user interface provided by the first application program.
  • the fifth user interface refer to the user interface 62 shown in FIG. 6D or the user interface 71 shown in FIG. 7B.
  • the one or more contact options in the fifth user interface may include the contacts of the associated user of the sender 1001 in the first application, and the associated device can correspond to the contacts of the sender 101 who transfer files through "hishare".
  • the contact options may also include the contact options corresponding to all the contacts of the associated user of the sending end 1001 in the first application, or the associated user of the sending end 1001 communicated in the first application recently Options for one or more contacts.
  • the sending end 1001 can detect an operation acting on the contact option in the fifth user interface.
  • the sending end 1001 can detect a click operation, a touch operation, etc., on the contact "Kate" option 609B in the user interface 62 shown in FIG. 6D.
  • S1110 Under the condition that "hishare" is turned on, the sender 1001 can discover nearby devices, such as electronic device 1001, electronic device 1002, electronic device 1003, electronic device 1005..., electronic device 100n. n is a positive integer. For details, refer to S1008 in the method embodiment of FIG. 10B.
  • the embodiment of this application does not limit the sequence of S1110 and S1107.
  • the sending end 1001 can execute S1107 and S1110 at the same time, or execute S1107 first, or execute S1110 first.
  • the sending end 1001 determines the device associated with the contact corresponding to the contact option operated by the user in the discovered nearby devices, that is, the receiving end 1002 is determined. For details, refer to S1009 in the method embodiment of FIG. 10B.
  • S1112 The sending end 1001 can establish a communication connection with the receiving end 1002. For details, refer to S1011 in the method embodiment of FIG. 10B.
  • the sending end 1001 may send a file sharing request to the receiving end 1002.
  • the file sharing request is used to request the receiving end 1002 to receive the file shared by the sending end 1001.
  • S1012 in the method embodiment of FIG. 10B.
  • S1114 The sending end 1001 displays a prompt message.
  • the prompt information may prompt the current file transmission status of the associated user of the sending end 1001.
  • the prompt information is used to prompt the transmission state of the current file of the associated user of the sending end 1001 to be the first transmission state.
  • the first transmission state may mean that the selected file is waiting to be received by the receiving end 1002.
  • prompt information refers to the prompt information 611 in FIG. 6F.
  • S1115 After receiving the file sharing request sent by the sending end 1001, the receiving end 1002 may display a notification window. For details, refer to S1014 in the method embodiment in FIG. 10B.
  • S1116 After the receiving end 1002 detects a user operation for accepting the file sharing request of the sending end 1001 in the notification window, it returns a sharing request response to the sending end 1001. For details, refer to S1015 in the method embodiment of FIG. 10B.
  • S1117 After receiving the share request response returned by the receiving end 1002, the sending end 1001 sends the selected file to the receiving end 1002 through "hishare". The sending end 1001 sends the selected file to the receiving end 1002 through "hishare" not completely through the server. For details, refer to S1016 in the method embodiment of FIG. 10B.
  • S1118-S1120 feedback the file transfer status. For details, refer to S1017-S1019 in the method embodiment of FIG. 10B.
  • the prompt information displayed by the sending end 1001 may be displayed in the sixth user interface.
  • the sixth user interface For an exemplary implementation of the sixth user interface, reference may be made to the user interface shown in any one of FIGS. 6E to 6H.
  • the sending end 1001 and the receiving end 1002 are both pre-bound to the third-party interface ShareKit service.
  • the ShareKit service is used to support the method of transferring files without traffic in the running application of the device.
  • the ShareKit service supports the sender 1001 to call the function (such as PreSend Send) to send the selected file to the receiver 1002 through AIDL.
  • a function obtains the transmission status of the file, and determines the receiving end 1002 by calling a function (for example, OnDeviceFound) through AIDL; it can also support the receiving end 1002 to obtain the transmission status of the file through AIDL calling a function (for example, OnProgress).
  • a function for example, OnTransStateChange
  • the ShareKit service may be a system function preset in the sending end 1001 and the receiving end 1002.
  • the ShareKit service can be opened in the form of Android archive (aar) and Android installation package (Android packet, APK).
  • the first application on the sending end or the receiving end can call the aar interface to obtain the ShareKit service.
  • FIG. 11 shows the architecture of providing ShareKit services on the sending end 1001 and the receiving end 1002.
  • the architecture can include kit interface carriers, interaction mechanisms, and kit implementation carriers. among them:
  • the kit interface carrier may include an aar and a Java archive (Java archive, JAR) of an application (for example, the first application) installed on the device.
  • JAR Java archive
  • the interaction mechanism may include an AIDL mechanism, a shared library (shared library) mechanism, a software development kit (software development kit, SDK) mechanism, and a shared feature (share feature) mechanism.
  • AIDL AIDL mechanism
  • shared library shared library
  • software development kit software development kit
  • shared feature shared feature
  • the kit implementation carrier can be stored in ROM.
  • the kit implementation carrier may include: preset APK, preset library, various system services and common services, shared feature, etc.
  • the method, electronic device, and system for transferring files in applications can enable users to quickly share files with other users nearby through applications installed on the electronic device.
  • the process of sharing files does not depend on the server.
  • the implementation of the technical solutions provided by the embodiments of this application has the following beneficial effects: the electronic device can quickly and quickly transfer files to other surrounding devices in the application, optimizing the user experience; regardless of whether there is a connection between the electronic device and the server
  • the communication connection, whether the communication connection is good the electronic device can share files to other devices, which can save the cellular data traffic consumed by the electronic device and reduce the load of the server;
  • the size of the file shared by the electronic device is not limited, which means that the electronic device The device can share larger files to other surrounding devices.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium, (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk).
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments.
  • the aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

L'invention divulgue un procédé de transmission d'un fichier dans une application d'une manière exempte de trafic et un dispositif électronique et un système. En faisant appel au procédé, un dispositif électronique peut partager rapidement, dans un programme d'application, un fichier avec d'autres dispositifs voisins au moyen d'une connexion de communication directe Wi-Fi établie entre le dispositif électronique et les autres dispositifs. En implémentant les solutions techniques fournies dans les modes de réalisation de la présente demande, un dispositif électronique peut transmettre rapidement et commodément, dans une application, un fichier à d'autres dispositifs environnants, optimisant ainsi l'expérience d'utilisation d'un utilisateur et peut également économiser du trafic de données cellulaires consommé par le dispositif électronique, réduisant ainsi la charge d'un serveur ; de plus, il n'y a pas de limite à la taille du fichier partagé par le dispositif électronique.
PCT/CN2020/131219 2019-12-31 2020-11-24 Procédé de transmission de fichier dans une application et dispositif électronique et système WO2021135734A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911419935.2A CN113068156A (zh) 2019-12-31 2019-12-31 应用中传输文件的方法、电子设备及系统
CN201911419935.2 2019-12-31

Publications (1)

Publication Number Publication Date
WO2021135734A1 true WO2021135734A1 (fr) 2021-07-08

Family

ID=74232820

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/131219 WO2021135734A1 (fr) 2019-12-31 2020-11-24 Procédé de transmission de fichier dans une application et dispositif électronique et système

Country Status (2)

Country Link
CN (2) CN112261624B (fr)
WO (1) WO2021135734A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542773A (zh) * 2021-07-19 2021-10-22 北京达佳互联信息技术有限公司 多媒体资源的分享方法、装置、电子设备及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844974B (zh) * 2021-01-31 2023-08-22 华为技术有限公司 一种共享通信录的方法、移动设备、电子设备和通信系统
CN113300938B (zh) * 2021-04-02 2023-02-24 维沃移动通信有限公司 消息发送方法、装置及电子设备
CN115378930A (zh) * 2021-05-17 2022-11-22 成都鼎桥通信技术有限公司 文件分发方法及装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258707A1 (en) * 2012-01-23 2014-09-11 Douglas Denny Secure communications system for direct transfer between mobile device
US8954394B2 (en) * 2013-03-21 2015-02-10 Nextbit Systems Inc. Using mobile devices of a user as an edge cache to stream video files
US20160050551A1 (en) * 2014-08-15 2016-02-18 Emily Qi Methods, systems, and devices for enabling multiple radio assited discovery
CN106375479A (zh) * 2016-10-26 2017-02-01 北京小米移动软件有限公司 数据共享方法及装置
CN106550488A (zh) * 2016-10-21 2017-03-29 乐视控股(北京)有限公司 多媒体文件的共享方法、用于分享文件的终端和电子设备
CN109309967A (zh) * 2018-12-11 2019-02-05 连尚(新昌)网络科技有限公司 传输文件的方法、设备及计算机可读存储介质
CN110177345A (zh) * 2019-05-31 2019-08-27 东北大学 一种用于无蜂窝网络信号区域的文件传输、聊天系统及方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401898A (zh) * 2013-07-15 2013-11-20 上海鼎为通讯电子有限公司 在移动终端之间传输数据的方法及移动终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258707A1 (en) * 2012-01-23 2014-09-11 Douglas Denny Secure communications system for direct transfer between mobile device
US8954394B2 (en) * 2013-03-21 2015-02-10 Nextbit Systems Inc. Using mobile devices of a user as an edge cache to stream video files
US20160050551A1 (en) * 2014-08-15 2016-02-18 Emily Qi Methods, systems, and devices for enabling multiple radio assited discovery
CN106550488A (zh) * 2016-10-21 2017-03-29 乐视控股(北京)有限公司 多媒体文件的共享方法、用于分享文件的终端和电子设备
CN106375479A (zh) * 2016-10-26 2017-02-01 北京小米移动软件有限公司 数据共享方法及装置
CN109309967A (zh) * 2018-12-11 2019-02-05 连尚(新昌)网络科技有限公司 传输文件的方法、设备及计算机可读存储介质
CN110177345A (zh) * 2019-05-31 2019-08-27 东北大学 一种用于无蜂窝网络信号区域的文件传输、聊天系统及方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542773A (zh) * 2021-07-19 2021-10-22 北京达佳互联信息技术有限公司 多媒体资源的分享方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN112261624A (zh) 2021-01-22
CN112261624B (zh) 2022-01-11
CN113068156A (zh) 2021-07-02

Similar Documents

Publication Publication Date Title
WO2021052147A1 (fr) Procédé de transmission de données et dispositifs associés
WO2021013158A1 (fr) Procédé d'affichage et appareil associé
WO2021135734A1 (fr) Procédé de transmission de fichier dans une application et dispositif électronique et système
WO2021139768A1 (fr) Procédé d'interaction pour traitement de tâches inter-appareils, et dispositif électronique et support de stockage
US11861247B2 (en) Data sharing method, graphical user interface, electronic device, and system
KR102481065B1 (ko) 애플리케이션 기능 구현 방법 및 전자 디바이스
WO2021000839A1 (fr) Procédé de division d'écran et dispositif électronique
JP2022523989A (ja) Uiコンポーネントを表示するための方法及び電子デバイス
EP4221388A1 (fr) Procédé de connexion p2p wifi, dispositif électronique, produit programme et support
WO2022017393A1 (fr) Système d'interaction d'affichage, procédé d'affichage, et dispositif
WO2022127661A1 (fr) Procédé de partage d'applications et dispositif électronique et support de stockage
WO2022042326A1 (fr) Procédé de commande d'affichage et appareil associé
CN112130788A (zh) 一种内容分享方法及其装置
JP7234379B2 (ja) スマートホームデバイスによってネットワークにアクセスするための方法および関連するデバイス
WO2022156535A1 (fr) Procédé et appareil de traitement d'application distribuée
WO2023151377A1 (fr) Procédé de partage de fichiers et dispositif terminal
WO2022063159A1 (fr) Procédé de transmission de fichier et dispositif associé
WO2022028537A1 (fr) Procédé de reconnaissance de dispositif et appareil associé
WO2021143650A1 (fr) Procédé de partage de données et dispositif électronique
JP2023534182A (ja) ファイルを開く方法およびデバイス
JP2022542797A (ja) 情報送信方法及び電子デバイス
WO2023029983A1 (fr) Procédé et système de glissement de contenu de commande, et dispositif électronique
JP7319431B2 (ja) アプリケーション機能の実施方法及び電子装置
WO2021218544A1 (fr) Système de fourniture de connexion sans fil, procédé et appareil électronique
WO2022052706A1 (fr) Procédé, système et dispositif électronique de partage de services

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20908714

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20908714

Country of ref document: EP

Kind code of ref document: A1