Resource access method, terminal and storage medium

By displaying the device identifiers of other electronic devices in the gallery interface and establishing multiple communication channels, the problem of users accessing other terminal resources in one terminal is solved, and resource acquisition efficiency and user experience are improved.

CN119917189APending Publication Date: 2025-05-02HONOR DEVICE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311384825.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The prior art is difficult to enable users to access resources stored in other terminals in one terminal, and there are problems such as low resource acquisition efficiency and poor user experience.

Method used

By displaying the device identifiers of other electronic devices detected in the gallery interface, multiple communication channels are established and managed, allowing users to access resources stored in other electronic devices in one electronic device.

Benefits of technology

It improves the efficiency of electronic devices to acquire resources, improves user experience, and supports the existence of multiple communication channels at the same time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917189A_ABST
    Figure CN119917189A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a resource access method, a terminal and a storage medium, and relates to the technical field of data processing.The method comprises the steps that when a picture library is in a foreground running state and second electronic equipment and third electronic equipment are detected, the first electronic equipment is accessed; displaying an equipment identifier of the second electronic equipment and an equipment identifier of the third electronic equipment on an interface of the image library, wherein a first communication channel is established between the first electronic equipment and the second electronic equipment; loading the first resource information based on the first communication channel, and displaying the first resource information on a first interface of the gallery; establishing a second communication channel between the first electronic equipment and third electronic equipment under the condition that the first communication channel is kept between the first electronic equipment and the second electronic equipment; and loading the second resource information based on the second communication channel, and displaying the second resource information on a second interface of the gallery. By applying the scheme provided by the embodiment of the invention, a user can access resources stored in other electronic equipment in one electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a resource access method, a terminal and a storage medium. Background Art

[0002] As mobile phones, tablet computers, smart screens and other terminals are widely used in users' daily lives, a user can have multiple terminals, each of which can store various resources such as images and videos. Since the resources stored in different terminals may be different, in order to facilitate resource acquisition, users expect to be able to access resources stored in other terminals from one terminal. To this end, a resource access solution is needed. Summary of the invention

[0003] In view of this, the present application provides a resource access method, a terminal and a storage medium, so as to enable a user to access resources stored in other terminals in one terminal.

[0004] In a first aspect, an embodiment of the present application provides a resource access method, which is applied to a first electronic device, and the method includes:

[0005] When the gallery is in the foreground running state and the second electronic device and the third electronic device are detected, the device identification of the second electronic device and the device identification of the third electronic device are displayed on the interface of the gallery, and a first communication channel has been established between the first electronic device and the second electronic device;

[0006] Based on the first communication channel, first resource information of a gallery resource in the second electronic device is loaded, and the first resource information of the loaded source is displayed on a first interface of the gallery;

[0007] While maintaining the first communication channel between the first electronic device and the second electronic device, establishing a second communication channel between the first electronic device and the third electronic device;

[0008] Based on the second communication channel, second resource information of the gallery resource in the third electronic device is loaded, and the loaded second resource information is displayed on the second interface of the gallery.

[0009] As can be seen from the above, in the solution provided by the embodiment of the present application, although a first communication channel has been established between the first electronic device and the second electronic device, the first electronic device can also establish a second communication channel between the third electronic device while maintaining the above-mentioned first communication channel, thereby loading the second resource information of the gallery resources in the third electronic device based on the second communication channel, and displaying the loaded second resource information on the second interface of the gallery, it can be seen that the user can access resources stored in other electronic devices in one electronic device. In addition, compared with the prior art, the resource access solution provided by the embodiment of the present application supports the existence of multiple communication channels at the same time. Applying the resource access solution provided by the embodiment of the present application can improve the efficiency of the first electronic device in acquiring resources and enhance the user experience.

[0010] In one embodiment of the present application, before establishing the second communication channel between the first electronic device and the third electronic device, the method further includes:

[0011] Determine whether the number of communication channels established by the first electronic device is less than a maximum number of channels for establishing communication channels by the first electronic device, wherein the maximum number of channels is an integer greater than 1;

[0012] The establishing a second communication channel between the first electronic device and the third electronic device includes:

[0013] If the number of communication channels established by the first electronic device is less than the maximum number of communication channels established by the first electronic device, a second communication channel is established between the first electronic device and the third electronic device.

[0014] From the above, it can be seen that in the solution provided by the embodiment of the present application, as long as the number of communication channels established by the first electronic device is less than the maximum number of channels, the first electronic device can directly establish a second communication channel between the first electronic device and the third electronic device, thereby loading the second resource information of the gallery resources in the third electronic device based on the second communication channel, and displaying the loaded second resource information on the second interface of the gallery. It can be seen that compared with the prior art, the resource access solution provided by the embodiment of the present application can improve the efficiency of the first electronic device in acquiring resources and enhance the user experience.

[0015] In one embodiment of the present application, the method further includes:

[0016] If the number of communication channels established by the first electronic device is equal to the maximum number of channels, disconnecting one of the communication channels established by the first electronic device;

[0017] The establishing a second communication channel between the first electronic device and the third electronic device includes:

[0018] After disconnecting one of the communication channels established by the first electronic device, a second communication channel is established between the first electronic device and the third electronic device.

[0019] As can be seen from the above, in the solution provided by the embodiment of the present application, the number of communication channels established by the first electronic device is equal to the maximum number of channels, indicating that the first electronic device has reached the upper limit of the number of connections. At this time, the first electronic device can disconnect one of the connected communication channels and continue to execute subsequent steps. In this way, disconnecting a connected communication channel enables the first electronic device to flexibly switch the electronic device to which it is connected, so that the first electronic device can subsequently access the resources in the electronic device that the user expects to access, thereby improving the flexibility of the first electronic device in accessing resources.

[0020] In one embodiment of the present application, disconnecting one of the communication channels established by the first electronic device includes:

[0021] Displaying channel prompt information on a third interface of the gallery, wherein the channel prompt information includes: a device identification of the second electronic device;

[0022] In response to a user's operation on a device identifier in the channel prompt information, a communication channel between the first electronic device and the electronic device indicated by the device identifier operated by the user is disconnected.

[0023] In this solution, the channel prompt information is displayed in the gallery interface to interact with the user, so that the user can select the communication channel to be disconnected, so that the operation of disconnecting the communication channel meets the user's expectations, thereby improving the user experience.

[0024] In one embodiment of the present application, the establishing of the second communication channel between the first electronic device and the third electronic device includes:

[0025] Detecting whether a communication channel has been established between the first electronic device and the third electronic device;

[0026] If not, a second communication channel is established between the first electronic device and the third electronic device.

[0027] As can be seen from the above, in the solution provided by the embodiment of the present application, by detecting whether a communication channel has been established between the first electronic device and the third electronic device, it is possible to prevent the repeated establishment of the same communication channel when the first electronic device and the third electronic device have already established a communication channel, thereby saving communication channel resources. And the repeated establishment of the same communication channel by the first electronic device may cause the first electronic device to report an error, therefore, performing the above detection before establishing the above second communication channel can also reduce the risk of the first electronic device reporting an error.

[0028] In one embodiment of the present application, the establishing of the second communication channel between the first electronic device and the third electronic device includes:

[0029] In response to a user's operation on the device identification of the third electronic device, a second communication channel is established between the first electronic device and the third electronic device.

[0030] In this solution, the user can select the electronic device that needs to be accessed, thereby facilitating the interaction between the user and the first electronic device and improving the user's experience.

[0031] In one embodiment of the present application, displaying the device identification of the second electronic device and the device identification of the third electronic device on the interface of the gallery includes:

[0032] The device identification of the second electronic device and the device identification of the third electronic device are displayed on the interface of the gallery according to the arrangement order of the types of the electronic devices.

[0033] In this solution, the type arrangement order of the above-mentioned electronic devices can be the arrangement order set by the user according to his or her own preferences. In this way, the device identifications are displayed in the gallery interface according to the type arrangement order, and the user can first check the device identifications of his or her favorite devices, which can improve the user experience.

[0034] In one embodiment of the present application, displaying the device identification of the second electronic device and the device identification of the third electronic device on the interface of the gallery includes:

[0035] According to the time when the electronic device is detected, the device identification of the second electronic device and the device identification of the third electronic device are displayed on the interface of the gallery.

[0036] In this solution, the device identification of each electronic device is displayed according to the time when the electronic device is detected, so that when the user checks the device identification of each electronic device, he can know the order in which the electronic devices are detected, so that the user can quickly determine the electronic device he wants to access according to the order. For example, if the device identification is displayed in the order of the detected time, the user can quickly determine that the device identification at the end is the device identification of the electronic device most recently detected by the first electronic device. It can be seen that applying this implementation method when displaying device identification can provide users with convenience in accessing resources.

[0037] In one embodiment of the present application, the method further includes:

[0038] If a new electronic device is detected and there is insufficient space in the device identification display area on the interface of the gallery, the device identification of the new electronic device is displayed in a hidden manner, and a new electronic device prompt message is displayed on the interface of the gallery.

[0039] In this solution, when a new electronic device is detected and it is determined that there is insufficient space in the device identification display area, a new electronic device prompt message can be displayed on the gallery interface to prompt the user that the first electronic device has detected a new electronic device. This can improve the convenience of the user's access to the gallery resources of the new electronic device.

[0040] In one embodiment of the present application, the loading of the second resource information of the gallery resource in the third electronic device based on the second communication channel, and displaying the loaded second resource information on the second interface of the gallery includes:

[0041] Based on the second communication channel, loading the second resource information of the gallery resource in the third electronic device, and displaying the resource loading animation on the fourth interface of the gallery during the loading of the second resource information;

[0042] After the second resource information is successfully loaded, the second resource information is displayed on the second interface of the gallery;

[0043] After the loading of the second resource information fails, the failure information is displayed on the fifth interface of the gallery.

[0044] In this solution, the first electronic device may display different interfaces corresponding to different stages when the first electronic device is loading the second resource information, so that the user can understand the loading status of the first electronic device in real time, thereby improving the user experience.

[0045] In addition, the first electronic device can detect the reason for the failure to load the second resource information, and display the failure information including the reason for the failure when displaying the failure information on the fifth interface, so that the user can be informed of the failure to load the information, thereby improving the user's usage experience.

[0046] In one embodiment of the present application, the step of loading the second resource information of the gallery resource in the third electronic device based on the second communication channel includes:

[0047] Based on the second communication channel, second resource information of the gallery resource that has been authorized for access by the first electronic device is loaded into the third electronic device.

[0048] In this solution, the first electronic device loads the second resource information of the gallery resources in the third electronic device that the first electronic device has been authorized to access. As for the gallery resources in the third electronic device that the first electronic device is not authorized to access, it is difficult for the first electronic device to load the resource information of such gallery resources. This can improve the privacy and security of the gallery resources in the third electronic device.

[0049] In one embodiment of the present application, the method further includes:

[0050] In response to the gallery resource saving instruction, creating an album in the gallery based on a preset source character and a device identification of the third electronic device;

[0051] The gallery resource is saved in the created album.

[0052] As can be seen from the above, in the solution provided by the embodiment of the present application, the first electronic device can save the library resources specified by the user in response to the user's library resource saving instruction, and can save the library resources in an album created based on the source character and the device identification of the third electronic device, so that when the subsequent user checks the library resources, he can quickly find the album that stores the library resources in the third electronic device, so as to quickly view the library resources loaded from the third electronic device and saved by the first electronic device. Therefore, the resource access solution provided by the embodiment of the present application can improve the user experience.

[0053] In one embodiment of the present application, the first electronic device includes a gallery and a fusion interconnection middle platform service, and when the gallery is in a foreground running state and a second electronic device and a third electronic device are detected, the device identification of the second electronic device and the device identification of the third electronic device are displayed on the interface of the gallery, including:

[0054] When the gallery is in the foreground running state and the fusion interconnection middle platform service detects the second electronic device and the third electronic device, the fusion interconnection middle platform service sends the device identification of the second electronic device and the device identification of the third electronic device to the gallery;

[0055] In response to receiving the device identification of the second electronic device and the device identification of the third electronic device, the gallery displays the device identification of the second electronic device and the device identification of the third electronic device in an interface.

[0056] In one embodiment of the present application, the first electronic device further includes a gallery resource manager and a data middle platform service;

[0057] The fusion interconnection middle platform service sends the device identification of the second electronic device and the device identification of the third electronic device to the gallery, including:

[0058] The fusion interconnection middle platform service sends the device identification of the second electronic device and the device identification of the third electronic device to the gallery through the data middle platform service and the gallery resource manager.

[0059] In one embodiment of the present application, the loading of first resource information of a gallery resource in the second electronic device based on the first communication channel, and displaying the loaded first resource information on a first interface of the gallery includes:

[0060] The fusion interconnection middle platform service loads the first resource information of the gallery resource in the second electronic device based on the first communication channel, and sends the first resource information to the gallery;

[0061] In response to receiving the first resource information, the gallery displays the first resource information on a first interface.

[0062] In one embodiment of the present application, the first electronic device further includes a gallery resource manager and a data middle platform service;

[0063] The fusion interconnection middle platform service sends the first resource information to the gallery, including:

[0064] The fusion interconnection middle platform service sends the first resource information to the gallery through the data middle platform service and the gallery resource manager.

[0065] In one embodiment of the present application, the loading of the second resource information of the gallery resource in the third electronic device based on the second communication channel, and displaying the loaded second resource information on the second interface of the gallery includes:

[0066] The fusion interconnection middle platform service loads the second resource information of the gallery resource in the third electronic device based on the second communication channel, and sends the second resource information to the gallery;

[0067] In response to receiving the second resource information, the gallery displays the second resource information in a second interface.

[0068] In one embodiment of the present application, the first electronic device further includes a gallery resource manager and a data middle platform service;

[0069] The fusion interconnection middle platform service sends the second resource information to the gallery, including:

[0070] The fusion interconnection middle platform service sends the second resource information to the gallery through the data middle platform service and the gallery resource manager.

[0071] From the above, it can be seen that in the solution provided by the embodiment of the present application, although a first communication channel has been established between the first electronic device and the second electronic device, the first electronic device can also establish a second communication channel between the third electronic device while maintaining the above-mentioned first communication channel, thereby loading the second resource information of the gallery resources in the third electronic device based on the second communication channel, and displaying the loaded second resource information on the second interface of the gallery. It can be seen that compared with the prior art, the resource access solution provided by the embodiment of the present application supports the existence of multiple communication channels at the same time. Applying the resource access solution provided by the embodiment of the present application can improve the efficiency of the first electronic device in acquiring resources and enhance the user experience.

[0072] In one embodiment of the present application, before establishing the second communication channel between the first electronic device and the third electronic device, the method further includes:

[0073] The fusion interconnection middle station service determines whether the number of communication channels established by the first electronic device is less than the maximum number of channels for establishing communication channels by the first electronic device, wherein the maximum number of channels is an integer greater than 1;

[0074] If the fusion interconnection middle platform service determines that the number of communication channels established by the first electronic device is equal to the maximum number of channels, it sends a channel disconnection request to the gallery;

[0075] The gallery displays channel disconnection prompt information in a third interface of the gallery in response to the channel disconnection request, wherein the channel disconnection prompt information includes: a device identification of the second electronic device;

[0076] The gallery determines the target device identifier of the device to be disconnected selected by the user in response to the user's operation on the device identifier in the channel disconnection prompt information, and sends the target device identifier to the fusion interconnection middle platform service;

[0077] The fusion interconnection middle station service disconnects the communication channel between the first electronic device and the device to be disconnected based on the target device identifier.

[0078] In this solution, the channel prompt information is displayed in the gallery interface to interact with the user, so that the user can select the communication channel to be disconnected, so that the operation of disconnecting the communication channel meets the user's expectations, thereby improving the user experience.

[0079] In one embodiment of the present application, the first electronic device further includes a gallery resource manager and a data middle platform service;

[0080] The fusion interconnection middle platform service sends a channel disconnection request to the gallery, including:

[0081] The fusion interconnection middle platform service sends a channel disconnection request to the gallery through the data middle platform service and the gallery resource manager;

[0082] The image library sends the target device identifier to the fusion interconnection middle platform service, including:

[0083] The gallery sends the target device identifier to the fusion interconnection middle office service through the data middle office service and the gallery resource manager.

[0084] In one embodiment of the present application, the fusion interconnection middle platform service establishes a second communication channel between the first electronic device and the third electronic device, including:

[0085] The fusion interconnection middle platform service detects whether a communication channel has been established between the first electronic device and the third electronic device; if not, a second communication channel is established between the first electronic device and the third electronic device.

[0086] As can be seen from the above, in the solution provided by the embodiment of the present application, by detecting whether a communication channel has been established between the first electronic device and the third electronic device, it is possible to prevent the repeated establishment of the same communication channel when the first electronic device and the third electronic device have already established a communication channel, thereby saving communication channel resources. And the repeated establishment of the same communication channel by the first electronic device may cause the first electronic device to report an error, therefore, performing the above detection before establishing the above second communication channel can also reduce the risk of the first electronic device reporting an error.

[0087] In one embodiment of the present application, the establishing of the second communication channel between the first electronic device and the third electronic device includes:

[0088] The gallery sends a resource acquisition request including the device identification of the third electronic device to the converged interconnection middle platform service in response to the user's operation on the device identification of the third electronic device;

[0089] In response to receiving the resource acquisition request, the converged interconnection middle platform service establishes a second communication channel between the first electronic device and the third electronic device.

[0090] In one embodiment of the present application, the first electronic device further includes a gallery resource manager and a data middle platform service;

[0091] The gallery sends a resource acquisition request including the device identification of the third electronic device to the fusion interconnection middle platform service, including:

[0092] The gallery sends a resource acquisition request including the device identification of the third electronic device to the fusion interconnection middle office service through the data middle office service and the gallery resource manager.

[0093] In this solution, the user can select the electronic device that needs to be accessed, thereby facilitating the interaction between the user and the first electronic device and improving the user's experience.

[0094] In one embodiment of the present application, the gallery displays the second resource information on the second interface, including:

[0095] In the process of obtaining the second resource information, the gallery displays a resource loading animation on the fifth interface of the gallery;

[0096] After successfully obtaining the second resource information, the gallery displays the second resource information on a second interface of the gallery;

[0097] After the gallery fails to obtain the second resource information, the gallery displays failure information on the fifth interface of the gallery.

[0098] In this solution, the first electronic device may display different interfaces corresponding to different stages when the first electronic device is loading the second resource information, so that the user can understand the loading status of the first electronic device in real time, thereby improving the user experience.

[0099] In addition, the first electronic device can detect the reason for the failure to load the second resource information, and display the failure information including the reason for the failure when displaying the failure information on the fifth interface, so that the user can be informed of the failure to load the information, thereby improving the user's usage experience.

[0100] In one embodiment of the present application, the method further includes:

[0101] The gallery creates an album in the gallery in response to the gallery resource saving instruction based on a preset source character and the device identification of the third electronic device, and saves the gallery resource in the created album.

[0102] As can be seen from the above, in the solution provided by the embodiment of the present application, the first electronic device can save the library resources specified by the user in response to the user's library resource saving instruction, and can save the library resources in an album created based on the source character and the device identification of the third electronic device, so that when the subsequent user checks the library resources, he can quickly find the album that stores the library resources in the third electronic device, so as to quickly view the library resources loaded from the third electronic device and saved by the first electronic device. Therefore, the resource access solution provided by the embodiment of the present application can improve the user experience.

[0103] In a second aspect, an embodiment of the present application further provides a terminal, comprising a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the terminal is triggered to execute any of the methods described in the first aspect above.

[0104] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any of the methods described in the first aspect above.

[0105] In a fourth aspect, an embodiment of the present application further provides a computer program product, wherein the computer program product comprises executable instructions, and when the executable instructions are executed on a terminal, the terminal executes any of the methods described in the first aspect above.

[0106] The beneficial effects of the solutions provided by the embodiments in the second, third and fourth aspects can refer to the beneficial effects of the solutions provided by the embodiments in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0107] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0108] Figure 1a A schematic diagram of the first gallery interface provided in the embodiment of the present application;

[0109] Figure 1b A schematic diagram of a second gallery interface provided in an embodiment of the present application;

[0110] Figure 1c A schematic diagram of a third gallery interface provided in an embodiment of the present application;

[0111] Figure 2aA schematic diagram of the fourth gallery interface provided in the embodiment of the present application;

[0112] Figure 2b A fifth picture gallery interface schematic diagram provided in an embodiment of the present application;

[0113] Figure 2c A sixth picture gallery interface schematic diagram provided in an embodiment of the present application;

[0114] Figure 2d A seventh picture gallery interface schematic diagram provided in an embodiment of the present application;

[0115] Figure 2e A schematic diagram of an eighth gallery interface provided in an embodiment of the present application;

[0116] Figure 2f A ninth picture gallery interface diagram provided in an embodiment of the present application;

[0117] Figure 2g A schematic diagram of the tenth gallery interface provided in an embodiment of the present application;

[0118] Figure 3 A schematic diagram of the eleventh gallery interface provided in an embodiment of the present application;

[0119] Figure 4a A schematic diagram of a twelfth gallery interface provided in an embodiment of the present application;

[0120] Figure 4b A schematic diagram of the thirteenth gallery interface provided in the embodiment of the present application;

[0121] Figure 4c A schematic diagram of the fourteenth gallery interface provided in the embodiment of the present application;

[0122] Figure 4d A schematic diagram of the fifteenth gallery interface provided in the embodiment of the present application;

[0123] Figure 4e A schematic diagram of the sixteenth gallery interface provided in the embodiment of the present application;

[0124] Figure 4f A seventeenth picture gallery interface schematic diagram provided in an embodiment of the present application;

[0125] Figure 4g This is a schematic diagram of the eighteenth gallery interface provided in the embodiment of the present application;

[0126] Figure 5a A flowchart of a first resource access method provided in an embodiment of the present application;

[0127] Figure 5b A flowchart of a second resource access method provided in an embodiment of the present application;

[0128] Figure 5c A flowchart of a third resource access method provided in an embodiment of the present application;

[0129] Figure 6 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0130] Figure 7 A schematic diagram of the interaction of a first electronic device module provided in an embodiment of the present application;

[0131] Figure 8 A schematic diagram of interaction of a second electronic device module provided in an embodiment of the present application;

[0132] Fig. 9 A schematic diagram of interaction of a third electronic device module provided in an embodiment of the present application;

[0133] Fig.10 A schematic diagram of the interaction of a fourth electronic device module provided in an embodiment of the present application;

[0134] Fig.11 A schematic diagram of interaction of a fifth electronic device module provided in an embodiment of the present application;

[0135] Fig.12 A schematic diagram of the interaction of the sixth electronic device module provided in an embodiment of the present application. DETAILED DESCRIPTION

[0136] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0137] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. For example, the first instruction and the second instruction are to distinguish different user instructions, and their order is not limited. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit them to be different.

[0138] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0139] During the resource access process, the terminal being used by the user can be referred to as the first electronic device, and other terminals except the first electronic device can be referred to as the second electronic device, the third electronic device, etc. The accessed resource can be data or files, such as pictures, videos, audio, documents, etc.

[0140] When a user uses a first electronic device to access resources stored in a second electronic device, a communication connection needs to be established between the first electronic device and the second electronic device to establish a communication channel, so that the first electronic device can then load resources stored in the second electronic device based on the channel and display the loaded resources. However, if the user wishes to access resources stored in a third electronic device at this time, the first electronic device needs to disconnect the communication connection with the second electronic device and reconnect the communication connection with the third electronic device. This results in the first electronic device having established a communication connection with another electronic device. Each time the user wishes to access resources stored in an unconnected electronic device, the first electronic device needs to perform a disconnection operation and a connection operation, thereby reducing the efficiency of the first electronic device in acquiring resources and providing a poor user experience.

[0141] In view of the above problems, the present application provides a resource access solution, which can be applied to a first electronic device equipped with a gallery. Applying the resource access solution provided in the embodiment of the present application can improve the efficiency of the first electronic device in acquiring resources and enhance the user experience.

[0142] First, the resource access solution provided in the embodiment of the present application is described in conjunction with various user interfaces (UI) provided by electronic devices.

[0143] See also Figure 1a to Figure 1c , showing the UI for opening the gallery.

[0144] like Figure 1a As shown, Figure 1a This is a schematic diagram of a system interface UI01 of a first electronic device. Figure 1a The interface shown includes a status bar and multiple application icons. The status bar displays the signal strength of the communication signal, the signal strength of the local area network, the remaining battery power of the device and the time. The application icons include the settings application icon, the application market application icon, the browser application icon, the gallery application icon, etc.

[0145] During the process of the user using the first electronic device, the user can interact with the first electronic device, and the first electronic device can detect the user operation of opening the gallery application. For example, the user can click on the application icon 101 of the gallery application. After detecting the user's operation of clicking on the application icon 101 of the gallery application, the first electronic device responds to the operation, starts the gallery application, and displays the gallery interface.

[0146] When the gallery application is in the foreground running state in the first electronic device, the first electronic device can detect whether there are other electronic devices such as the second electronic device and the third electronic device in the device use environment. If the first electronic device does not detect other electronic devices such as the second electronic device and the third electronic device, the gallery interface displayed by the first electronic device can refer to the following situation 1. Figure 1b If the first electronic device detects other electronic devices such as the second electronic device and the third electronic device, the gallery interface displayed by the first electronic device may include the device identifications of the other electronic devices detected. For details, please refer to the subsequent situation 2. Figure 1c The device identifier of the other electronic device may be the device name of the other electronic device or an identifier customized by the first electronic device, for example, Figure 1c "User's pad", "user's smart screen", etc. shown in the figure.

[0147] When the first electronic device detects other electronic devices such as the second electronic device and the third electronic device, the first electronic device can display the device identification of other electronic devices when displaying the gallery interface, so that the user can select the displayed device identification by clicking, sliding, etc. The first electronic device can respond to the user's selection operation, establish a communication connection with the electronic device corresponding to the device identification selected by the user, and load the gallery resources in the electronic device for the user to view. Figure 1c For example, after the user selects the device identifier 105 "user's pad" of the second electronic device, the first electronic device can establish a communication connection with the user's pad. If the user selects the device identifier "user's smart screen" of the third electronic device again, the first electronic device can establish a communication connection with the user's smart screen. In this way, if the user selects multiple device identifiers, the first electronic device can establish a communication connection with multiple other electronic devices.

[0148] The first electronic device can detect other electronic devices in any of the following two implementation modes.

[0149] In the first implementation mode, the above-mentioned device usage environment can be a spatial range of a preset size where the first electronic device is located. When the first electronic device detects other electronic devices in the device usage environment, it can search whether there are other electronic devices in the spatial range of the preset size where it is located. If the first electronic device searches for other electronic devices in the spatial range, it means that the first electronic device has detected other electronic devices.

[0150] In a second implementation, the device usage environment may be an environment formed by the account of the logged-in user and the electronic devices of the associated user accounts associated with the user account, and the associated user accounts may be the accounts of the user's parents or children. In this way, when the first electronic device detects other electronic devices in the device usage environment, it may detect electronic devices with the user account or associated user account recorded therein logged in. If the first electronic device detects an electronic device with the user account or associated user account recorded therein logged in, it indicates that the first electronic device has detected other electronic devices.

[0151] The following describes two situations in which the first electronic device detects other electronic devices and does not detect other electronic devices.

[0152] Case 1: The first electronic device does not detect other electronic devices

[0153] When the first electronic device does not detect other electronic devices, the first electronic device only displays resources in its own gallery.

[0154] See also Figure 1b , Figure 1b This is a schematic diagram of the gallery interface UI02 displayed when the first electronic device does not detect other electronic devices. Figure 1b The gallery interface UI02 shown includes a status bar, a toolbar, an album slogan, a search bar 102, a function bar and multiple album icons. The toolbar includes a new icon 103 displayed as a "+" and an extension icon 104 composed of three dots. The user clicks the new icon 103 to create a new album in the gallery. The user clicks the extension icon 104 to use extended functions, such as album sorting, hiding albums, etc.; the search bar 102 includes a prompt "Search for photos on this device or other devices", and the function bar includes icons for the four functions of photos, albums, moments and creation. Each album icon displays a thumbnail of an image or video in the album. Figure 1b The gallery interface UI02 shown includes five albums, each of which is named: All Pictures, Camera, My Favorites, Screenshots and Recordings, and Multiple Recordings. The search bar 102 is used to search for pictures or videos contained in each album.

[0155] Case 2: The first electronic device detects another device

[0156] When the first electronic device detects other electronic devices, when the first electronic device displays the gallery interface, in addition to the status bar, toolbar, album slogan, search bar 102, function bar and album icon, the gallery interface may also include the device identification of the other detected electronic devices.

[0157] See also Figure 1c , Figure 1c The gallery interface UI03 shown is a gallery interface displayed when the first electronic device detects two other electronic devices, namely, the pad of the second electronic device user and the smart screen of the third electronic device user. Figure 1b compared to, Figure 1c In the gallery interface UI03 shown, a device identification is added between the search bar 102 and the album icon. The device identification includes "this device", "user's pad" and "user's smart screen", indicating that the first electronic device has detected the two devices, the pad used by the user and the user's smart screen. This device is the first electronic device. At this time, the albums displayed in the gallery interface UI03 are still the various albums contained in the gallery of the first electronic device itself, and the first electronic device has not yet established a communication connection with the two detected electronic devices. When the user selects "user's pad" displayed in the gallery interface UI03, the first electronic device can detect the user operation of selecting the device identification, and in response to the operation, establish a communication connection with the user's pad, load and display the gallery resources stored in the user's pad. For details, please refer to the subsequent Figure 2a to Figure 2g The UI shown.

[0158] In addition, when the above-mentioned device identification is represented by the name of the device, if the name of the device is long, the first electronic device may display partial characters of the device name when displaying the device name. For example, the partial characters may be the first and last partial characters, or only the first partial characters or the last partial characters.

[0159] In addition, the length of the displayed device name can be set to a preset length, such as 100 or 150 lines of pixels, or the number of characters displayed can be set to a preset number, such as 10 for Chinese characters and 30 for English characters. The characters in the head part and the tail part can be represented by "...".

[0160] For example, if the name of an electronic device is: ABCDEFGHIJKLMN, then when the first electronic device displays the device name, it may be displayed as: ABC…LMN.

[0161] In one embodiment of the present application, when displaying each device identification, each device identification can be sorted in a manner determined by the device information of the device to which it corresponds. For example, the device identification can be sorted in the order of the moment when the first electronic device detects the device corresponding to the device identification, or in the order of the preset device type sorting of the device corresponding to the device identification, etc.

[0162] The preset device type sorting order may be: mobile phone, pad, computer, and smart screen.

[0163] See also Figure 2a to Figure 2g , showing a UI of a first electronic device loading gallery resources of other devices, wherein:

[0164] When the first electronic device detects other electronic devices and displays device identifications of other electronic devices, the user can select an identification from the displayed device identifications by clicking, sliding the interface left or right, and the like.

[0165] like Figure 1c As shown, the user can click on the device identification 105 "user's pad" displayed in the interface, so that the first electronic device can detect the user's click operation on the device identification 105, and respond to the operation, and connect with the user's pad electronic device based on the device identification 105.

[0166] When the first electronic device is connected to the user's pad, the first electronic device can display a loading interface. That is, after the user clicks the device identifier 105 "user's pad", the interface displayed by the first electronic device changes from the above Figure 1c The displayed interface jumps to the loading interface.

[0167] See also Figure 2a , Figure 2a The gallery interface shown is a loading interface UI04 when the first electronic device is establishing a connection with the user's pad, that is, after the user clicks the device identifier 105 "user's pad", the interface displayed by the first electronic device changes from the above Figure 1c The displayed gallery interface UI03 jumps to Figure 2a The displayed interface UI04.

[0168] from Figure 2a It can be seen that when the first electronic device is connected to the user's pad, the loading interface UI04 includes a search box, the first electronic device and the device identification of each detected device, a loading icon 201 and the words "Loading..." 202.

[0169] After the first electronic device establishes a connection with the user's pad, it is also necessary to load the gallery resources in the user's pad so that the resources in the gallery of the user's pad can be displayed on the gallery interface. Therefore, during the process of the first electronic device loading the gallery resources in the user's pad, the first electronic device can also display a loading interface UI04, that is, Figure 2a .

[0170] The result of the first electronic device loading the gallery resources stored in the user's pad may be a success or a failure. In the case of a success, the first electronic device can display the gallery resources in the user's pad. At this time, the interface displayed by the first electronic device is changed from the above Figure 2a Jump to the display interface of the library resource in the user's pad that is loaded; if the loading fails, the first electronic device can also display a message to remind the user that the resource loading failed. At this time, the interface displayed by the first electronic device changes from the above Figure 2a Jump to the loading failure screen containing information to remind the user that the resource loading failed.

[0171] Two situations in which the first electronic device loads the gallery resources stored in the user's pad are described below.

[0172] Case 3: The first electronic device successfully loads the gallery resources stored in the user's pad

[0173] After the first electronic device successfully loads the authorized gallery resources in the user's pad, the loaded gallery resources of the user's pad can be displayed in the gallery interface.

[0174] See also Figure 2b , Figure 2b The gallery interface UI05 shown is a gallery interface for the first electronic device to display gallery resources loaded from the user's pad. When the first electronic device successfully loads the gallery resources stored in the user's pad, the interface displayed by the first electronic device is changed from the above Figure 2a The interface UI04 shown jumps to Figure 2b The interface shown is UI05.

[0175] Figure 2b In the gallery interface UI05, a search box, a first electronic device, device identifications of each detected device, and loaded gallery resources of the user's pad are included.

[0176] With the above Figure 1b Similarly, when the first electronic device displays the gallery resources of the user's pad, it can display multiple album icons in the gallery of the user's pad, and each album icon displays a thumbnail of an image or video in the album.

[0177] Case 4: The first electronic device fails to successfully load the gallery resources stored in the user's pad

[0178] The first electronic device may fail to connect to the user's pad, or may fail to load the resources stored in the user's pad. In this case, it is difficult for the first electronic device to display the gallery resources of the user's pad. At this time, the interface displayed by the first electronic device can be Figure 2a The interface UI04 shown jumps to a loading failure interface containing information reminding the user that the resource loading failed.

[0179] In addition, the first electronic device may also perform fault detection, obtain an error code indicating the cause of the loading failure, and display the error code in the interface, or display a preset loading error prompt message corresponding to the error code.

[0180] The above loading error prompt information may include: "keyboard and mouse sharing" is in use, network abnormality, loading timeout, the device is connecting to other devices, the device is offline, collaboration is not supported between devices, business occupation disconnection failed, screen projection from different sources is in progress, the same device has not been disconnected and is connecting immediately, etc.

[0181] See also Figure 2c , Figure 2c The interface shown is a loading failure interface UI06. When the first electronic device fails to successfully load the gallery resources stored in the user's pad, the interface displayed by the first electronic device changes from the above Figure 2a The interface UI04 shown jumps to Figure 2c The interface shown is UI06.

[0182] Figure 2c The interface UI06 shown includes a search box, the first electronic device and the device identification of each detected device, a loading failure icon 203 and a loading failure prompt message, wherein the content of the loading failure prompt message is: the machine is using "keyboard and mouse sharing", please disconnect and try again.

[0183] In addition to the error code or loading error prompt information, in order to facilitate the reloading of the user's pad gallery resources, a reload option can also be displayed in the loading failure interface, so that the user can click the reload option, and the first electronic device will reload the user's pad gallery resources.

[0184] In one embodiment of the present application, when the first electronic device establishes a connection with another electronic device for the first time, Figure 2a The loading interface shown displays resource access prompt information to prompt the user that the first electronic device is loading gallery resources of other electronic devices.

[0185] like Figure 2d As shown, Figure 2d The gallery interface UI07 shown is a gallery interface including resource access prompt information. That is, if the first electronic device has not been connected to any electronic device before, when the user clicks the device logo of the user's pad and jumps to Figure 2a After the loading interface UI04 is displayed, the first electronic device may pop up a resource access reminder message in the loading interface, thereby displaying the following information: Figure 2d The gallery interface UI07 is shown.

[0186] exist Figure 2d In the resource access prompt, the title is: Smart Internet Service, and the content is: Smart Internet "File Sharing" service is being used. Your nearby mobile phones, tablets, smart screens, etc. can access files on the devices with this device. If you do not need this service, you can turn it off in "Settings" > "Smart Internet" > "File Sharing".

[0187] Above Figure 2d In the gallery interface UI07 shown, the resource access prompt information is displayed in the form of a pop-up window. In addition to the resource access prompt information, the pop-up window may also include a confirmation option 204 displayed as "Got it". After viewing the resource access prompt information, the user can click on the confirmation option 204. After the first electronic device detects the user operation of clicking the confirmation option 204, it can respond to the operation, determine that the user has viewed the resource access prompt information, and remove the pop-up window.

[0188] In one embodiment of the present application, when a first electronic device is accessing a gallery resource stored in a second electronic device, an access prompt message may be displayed on the device interface of the second electronic device to prompt a user of the second electronic device that the second electronic device is being accessed by the first electronic device.

[0189] like Figure 2e As shown, Figure 2e The interface UI08 shown is a device interface including access prompt information displayed by the user's pad, which is the second electronic device. Before the first electronic device is connected to the user's pad, the user's pad may display the following information: Figure 1a As shown in the system interface UI01, when the first electronic device connects with the user's pad in response to the user's operation, the user's pad may display the following Figure 2e Interface UI08 is shown.

[0190] Figure 2eThe device interface UI08 shown includes a status bar, multiple application icons, and access prompt information. The above-mentioned first electronic device is the user's mobile phone 1. The title of the access prompt information is: Smart Internet Service, and the content is: "User's mobile phone 1" is accessing your device through the smart Internet "file sharing" service. If this service is not needed, you can turn it off through "Settings" > "Smart Internet" > "File Sharing".

[0191] Above Figure 2e In the interface UI08 shown, the access prompt information is displayed in the form of a pop-up window. In addition to the access prompt information, the pop-up window may also include an option 205 of "no more prompts". After viewing the access prompt information, the user of the second electronic device can click on the confirmation option 205. After the second electronic device detects the user operation of clicking the option, it can respond to the operation and not display the access prompt information during the subsequent access of the second electronic device.

[0192] The above pop-up window may also include a confirmation option 206 displayed as "Got it" and a jump option 207 displayed as "Go to settings". If the user clicks on the confirmation option 206, the second electronic device detects the user operation of clicking the confirmation option 206, and can determine that the user using the second electronic device has viewed the accessed prompt information and remove the pop-up window; if the user clicks on the jump option 207, the second electronic device detects the user operation of clicking the jump option 207, and can jump to the "file sharing" setting interface. The setting interface can be used to turn on or off the file sharing function. When the file sharing function is turned on, the second electronic device can be accessed, and when the file sharing function is turned off, the second electronic device cannot be accessed.

[0193] In one embodiment of the present application, see Figure 2f , Figure 2f It is a setting interface UI09 of “file sharing”, which includes a setting option 208 for file sharing. The user can control the opening and closing of the file sharing function by clicking on the option 208 .

[0194] In addition, the settings interface also includes introductory information about the file sharing function and a background icon. The title of the introductory information is: Share files with nearby devices, and the content of the introductory information is: Your nearby mobile phones, tablets, and smart screens can access files on each other's devices with this device.

[0195] The "file sharing" setting interface of the first electronic device can also be as follows: Figure 2f As shown, when the file sharing function of the first electronic device is turned on, the first electronic device can access the gallery resources of other electronic devices; when the file sharing function of the first electronic device is turned off, the first electronic device cannot access the gallery resources of other electronic devices.

[0196] When the file sharing function of the first electronic device is turned off, the first electronic device does not need to detect whether there are other electronic devices when running the gallery application, so no device identification is displayed in the gallery interface of the first electronic device; or when the first electronic device runs the gallery application, the first electronic device can detect whether there are other electronic devices, but does not display the device identification of the detected other electronic devices in the gallery interface. In this case, the gallery interface of the first electronic device can refer to the above Figure 1b .

[0197] In one embodiment of the present application, a first electronic device can establish connections with multiple other electronic devices. In order to ensure the stability of the connection with the connected devices, an upper limit of device connections can be set. For example, the upper limit of device connections is set to three, that is, the first electronic device can maintain a connection with three other devices at the same time.

[0198] After detecting that the user has selected the device identifier of other devices and before establishing a connection with the other devices corresponding to the device identifier selected by the user, the first electronic device can determine whether the number of electronic devices connected to itself has reached the device connection upper limit. If the device connection upper limit has not been reached, the first electronic device can directly connect to the electronic device to be connected while maintaining the existing connection relationship. If the device connection upper limit has been reached, the connection with one of the connected devices can be interrupted before performing the connection process.

[0199] The first electronic device needs to occupy the communication channel of the first electronic device when connecting with other electronic devices, and the first electronic device also needs to occupy the communication channel of the first electronic device when sharing resources with other electronic devices. In view of this, when the number of connections between the first electronic device and other devices reaches the connection limit, if the first electronic device obtains a sharing instruction from the user for the gallery resources it has viewed, the first electronic device can also interrupt the connection with one of the connected devices and use the idle communication channel after the device connection is interrupted to share resources.

[0200] The first electronic device may interrupt the connection with the connected device in any one of the following two implementations.

[0201] In the first implementation method, when the first electronic device determines that the device connection limit has been reached, a pop-up window may be displayed, wherein the pop-up window is used to request the user to select a device to be disconnected from the connected devices, so that the user can select the device to be disconnected. After determining the device selected by the user, the first electronic device can disconnect from the device selected by the user.

[0202] See also Figure 2g , Figure 2gThe interface UI10 shown includes a pop-up window area 209, that is, when the user clicks the device logo of the user's pad, the interface displayed by the first electronic device can be changed from Figure 1c The interface UI03 shown can jump to Figure 2a The loading interface UI04 shown in the figure determines whether the number of connected devices has reached the upper limit of device connection. If the upper limit of device connection is reached, you can Figure 2a A pop-up window will pop up in the loading interface UI04, showing Figure 2g Alternatively, when the user clicks the device logo of the user's pad, the first electronic device may first determine whether the number of connected devices has reached the upper limit of device connection. If the upper limit of device connection is reached, the first electronic device may directly Figure 1c The interface UI03 shown jumps to Figure 2g The loading interface UI10 is shown.

[0203] exist Figure 2g In the interface UI10 shown, the pop-up area 209 includes user guidance information, pop-up prompt information, and device options for each connected device, wherein the content of the user guidance information is: select a device to stop access, and the content of the pop-up prompt information is: the number of device connections exceeds the upper limit, and a device needs to be disconnected to continue accessing the "Gallery" of the "user's pad". The connected devices include the user's device 1, the user's device 2, and the user's smart screen, so the device options displayed in the pop-up window are the device options of the three devices of the user's device 1, the user's device 2, and the user's smart screen. The user can select an option from these three options, so that the first electronic device can determine the device corresponding to the option selected by the user, interrupt the connection with the determined device, and continue to connect with the device "user's pad".

[0204] In addition, the device options displayed in the pop-up window area 209 may be sorted in a manner determined according to the information of the corresponding devices.

[0205] For example, the devices may be sorted according to the order of detection times when the first electronic device detects the devices corresponding to the device options, or according to the preset device type sorting order of the devices corresponding to the device options, or according to the alphabetical order of the device names of the devices corresponding to the device options, etc.

[0206] For another example, the sorting weight of the device corresponding to each device option may be determined according to the above-mentioned information such as the detection time, device type, and device name, so that each device option is sorted according to the determined sorting weight.

[0207] In the second implementation, the first electronic device may also directly interrupt the connection of one of the connected devices, for example, it may interrupt the connection between the devices that first established a connection, or interrupt the connection between the devices that most recently established a connection, or randomly interrupt the connection between any devices.

[0208] In one embodiment of the present application, when the gallery application is in operation, the first electronic device can detect in real time or periodically whether there are other devices in the device usage environment. If the first electronic device detects a new device during the detection process, the device identifier of the new device can be added to the gallery interface.

[0209] When the device identifications of the devices in the gallery interface are sorted according to the detection time, if the first electronic device detects a new device, the device identification of the new device may be newly displayed at the end of the displayed device identifications.

[0210] In addition, when the first electronic device displays the device identification of a new device, it can also display a reminder message for viewing the device identification of the new device in the gallery interface to remind the user that the first electronic device has detected a new device and to remind the user to view the device identification of the new device. Furthermore, when the device identifications are sorted by detection time, if the first electronic device originally detected a large number of devices, that is, a large number of device identifications are displayed on the gallery interface, the device identification of the new device arranged at the end may be difficult to display in the gallery interface. In this case, displaying a reminder message for viewing in the gallery interface can effectively remind the user.

[0211] Figure 3 The gallery interface UI11 shown is an interface in which the first electronic device newly displays the device identification of a new device. UI11 includes a viewing reminder information displayed in the form of a bubble box 301. The content in the bubble box 301 is: A new device is found, swipe left to view. After viewing the information, the user can swipe left to view the device identification of the new device.

[0212] See also Figures 4a to 4d , showing a UI in which a first electronic device stores gallery resources of other electronic devices.

[0213] Specifically, after the first electronic device has loaded the gallery resources of other electronic devices, it can display the loaded gallery resources of other electronic devices. After consulting the gallery resources of other electronic devices displayed by the first electronic device, the user can store some or all of the gallery resources of other electronic devices in the gallery of the first electronic device according to his or her own preferences. When the first electronic device stores the gallery resources of other electronic devices, the gallery resources of different electronic devices can be stored in albums indicated by different storage paths in the gallery of the first electronic device.

[0214] Specifically, after the first electronic device obtains the storage instruction indicated by the user for the gallery resources of another electronic device, it can detect whether there is a storage path corresponding to the electronic device in its own gallery. If so, the gallery resources indicated by the storage instruction are directly stored in the album indicated by the storage path corresponding to the electronic device; if not, a new album corresponding to the electronic device is created in the gallery of the first electronic device, and the gallery resources indicated by the storage instruction are stored in the newly created album.

[0215] The albums storing gallery resources from different devices in the first electronic device can be named according to the names of the corresponding devices, for example, named in the form of "from + device name". The storage path of the album can also be determined according to the name of the corresponding device. In this way, when the first electronic device stores the gallery resources of other electronic devices, it can obtain the name of the electronic device, and detect whether there is a storage path corresponding to the electronic device in its own gallery according to the name of the electronic device. If so, the gallery resources of the electronic device are directly stored in the album indicated by the storage path corresponding to the electronic device; if not, a new album corresponding to the electronic device is created in the gallery of the first electronic device according to the name of the electronic device, and the gallery resources of the electronic device are stored in the newly created album.

[0216] In one embodiment of the present application, see Figure 4a , Figure 4a The first electronic device displays the resource interface UI12 of the user's pad loaded, and the interface UI12 includes five album icons. The user can click on one of the album icons, such as the album icon 401 for screenshots and screen recordings, to open the album. At this time, the interface displayed by the first electronic device changes from Figure 4a Jump to Figure 4b .

[0217] Figure 4b An interface UI13 is shown in which the first electronic device displays pictures contained in the screenshot and screen recording album. At this time, the user can click on any picture to display it in full screen, or select one or more pictures in the album and store the selected pictures.

[0218] See also Figure 4c , Figure 4c The interface UI14 is shown when the user selects the first three pictures in the album. When pictures are selected in the album, the bottom area of ​​the interface may display multiple function options such as edit option 402, share option 403, save option 404 and delete option 405. The user clicks save option 404 to store the selected pictures in the first electronic device.

[0219] See also Figure 4d , Figure 4d The interface UI15 when the first electronic device displays the gallery resources contained in the first electronic device is shown. Figure 4d The gallery interface shown includes a search box, the first electronic device and the device identification of each detected device, and various albums where the gallery resources of the first electronic device are located. It also includes an album named "from user's pad", indicating that the gallery resources in the album are from the user's pad. Figure 4d In the example, the first electronic device has three albums where its own gallery resources are located, and the album names are All Photos, Camera, and My Favorites.

[0220] After the user selects the album 406 "from the user's pad", the first electronic device can display the gallery resources stored in the album, such as Figure 4e As shown, Figure 4e The album interface UI16 shown shows the album name "from user's pad" and three pictures stored in the album.

[0221] In addition, if the name of the electronic device is changed after the first electronic device has stored the gallery resources of other electronic devices, when the first electronic device stores the gallery resources of the electronic device again, it can create a new album corresponding to the renamed device name, and store the gallery resources that need to be stored again in the newly created album, rather than in the album corresponding to the device name before the name change.

[0222] In the case where the first electronic device stores gallery resources of other electronic devices, the gallery interface of the first electronic device includes not only the album where its own gallery resources are located, but also the album where the gallery resources of other electronic devices are stored, and the first electronic device can display these two albums in any of the following two implementations. For ease of description, the album where the gallery resources of the first electronic device itself are located is referred to as the local album, and the album where the gallery resources of other devices are located is referred to as the external album.

[0223] In a first implementation, the first electronic device can add an external album behind the local camera according to the arrangement of the local album. Figure 4f As shown, Figure 4f The gallery interface UI17 shown includes local albums 1-5 and external albums 1-2, and the external albums 1-2 are arranged behind the local albums 1-5.

[0224] In a second implementation, the first electronic device may be divided into a first area and a second area, and the first area displays the local photo album, and the second area displays the external photo album. Figure 4g As shown, Figure 4g In the gallery interface UI18 shown, the first area displays the local photo albums 1-5, and the second area displays the external photo albums 1-2.

[0225] In addition, the order of the external albums in the first electronic device can be determined according to the creation time, name, etc. of each external album. If the order of the external albums can be determined according to the creation time, the later the creation time, the higher the order of the external album can be.

[0226] Since the first electronic device may repeatedly save the same gallery resource, in this case, when the first electronic device stores the gallery resource of other devices for the first time, the gallery resource in the first electronic device may be named according to the name in the original device; when the first electronic device repeatedly stores the gallery resource of other devices, the repeatedly stored gallery resource may be named in the form of "name in the original device + timestamp", and the timestamp is the moment when the first electronic device repeatedly stores the gallery resource.

[0227] The resource access method provided by this application is described below through specific embodiments.

[0228] In one embodiment of the present application, see Figure 5a , a flow chart of a first resource access method is provided, in this embodiment, the method is applied to the first electronic device, and the method includes the following steps S501-S504.

[0229] Step S501: when the gallery is in the foreground running state and the second electronic device and the third electronic device are detected, the device identification of the second electronic device and the device identification of the third electronic device are displayed on the interface of the gallery.

[0230] The first electronic device and the second electronic device have established a first communication channel.

[0231] The device identifier may be a device name, or an identifier customized by the first electronic device.

[0232] The interface for displaying the device identification of the second electronic device and the device identification of the third electronic device may be referred to as the initial interface. Figure 1c Interface UI03 is shown.

[0233] Specifically, after the first electronic device detects the user's operation of opening the gallery, it can respond to the operation and open the gallery application, so that the first electronic device displays the following Figure 1cIn the gallery interface UI03 shown, the gallery is in the foreground. In addition, when the first electronic device opens the gallery, it can detect whether there are other electronic devices such as the second electronic device and the third electronic device in the device usage environment where the first electronic device is located. If the first electronic device detects other electronic devices such as the second electronic device and the third electronic device, it can obtain the device identification of the second electronic device and the device identification of the third electronic device, and add the obtained device identification to the initial interface of the gallery. In this way, when the first electronic device displays the initial interface of the gallery, it can Figure 1c The gallery interface UI03 shown displays the device identification of the second electronic device and the device identification of the third electronic device.

[0234] The implementation manner of the first electronic device detecting other electronic devices can be found in the aforementioned embodiments and will not be described in detail here.

[0235] In one embodiment of the present application, the first electronic device includes a gallery and a fusion interconnected middle platform service. When the first electronic device displays the device identification of the second electronic device and the device identification of the third electronic device in the gallery interface, the fusion interconnected middle platform service can send the device identification of the second electronic device and the device identification of the third electronic device to the gallery; in response to receiving the device identification of the second electronic device and the device identification of the third electronic device, the gallery displays the device identification of the second electronic device and the device identification of the third electronic device in the interface.

[0236] In addition, the first electronic device may also include a gallery resource manager and a data middle platform service. When the fused interconnected middle platform service sends the device identification of the second electronic device and the device identification of the third electronic device to the gallery, the fused interconnected middle platform service may directly send the device identification of the second electronic device and the device identification of the third electronic device to the gallery. The fused interconnected middle platform may also send the device identification of the second electronic device and the device identification of the third electronic device to the gallery through the gallery resource manager and the data middle platform service.

[0237] The implementation method of the fusion interconnection middle platform sending the device identification to the gallery through the gallery resource manager and the data middle platform service can be found in the subsequent embodiments and will not be described in detail here.

[0238] Step S502: Based on the first communication channel, first resource information of the gallery resource in the second electronic device is loaded, and the loaded first resource information is displayed on the first interface of the gallery.

[0239] The above-mentioned gallery resources may be data or files, such as pictures, videos, audios, documents, etc.

[0240] The resource information may be index information of the gallery resource, a download address or an album thumbnail, etc.

[0241] For example, in the case where the second electronic device is a user's pad, the first interface can refer to the above Figure 2b Interface UI05 is shown.

[0242] Specifically, the first electronic device may load the first resource information of the gallery resource in the second electronic device through any one of the following two implementation methods.

[0243] In the first implementation method, the user of the second electronic device can pre-set the second electronic device to allow other electronic devices except the second electronic device to access the gallery resources stored on it. In this way, when the first electronic device and the second electronic device have established a first communication channel, the first electronic device can directly load the first resource information of the gallery resources in the second electronic device based on the first communication channel.

[0244] In the second implementation method, the first electronic device can send an access request for accessing resources to the second electronic device based on the first communication channel, so that if the user of the second electronic device agrees to the access request, the first electronic device can load the first resource information of the gallery resource in the second electronic device.

[0245] After the first electronic device loads and obtains the first resource information, the loaded first resource information is displayed on the first interface of the gallery.

[0246] For example, see Figure 2b In the interface UI05 shown in the figure, when the second electronic device is a user's pad, after the first electronic device loads and obtains the first resource information, it can be displayed as follows: Figure 2b The gallery interface UI05 shown displays the loaded first resource information.

[0247] In one embodiment of the present application, a first electronic device includes a gallery and a fusion interconnected middle-office service. When the first electronic device displays first resource information on a first interface of the gallery, the fusion interconnected middle-office service loads the first resource information of the gallery resources in the second electronic device based on a first communication channel, and sends the first resource information to the gallery. In response to receiving the first resource information, the gallery displays the first resource information on the first interface.

[0248] In addition, the first electronic device may also include a gallery resource manager and a data middle platform service. When the fused interconnected middle platform service sends the first resource information to the gallery, the fused interconnected middle platform service may send the first resource information directly to the gallery, and the fused interconnected middle platform may also send the first resource information to the gallery through the gallery resource manager and the data middle platform service.

[0249] For the implementation method of the fusion interconnected middle platform sending the first resource information to the gallery through the gallery resource manager and the data middle platform service, please refer to the implementation method of the fusion interconnected middle platform sending the second resource information to the gallery through the gallery resource manager and the data middle platform service in the subsequent embodiments, which will not be described in detail here.

[0250] Step S503: while maintaining the first communication channel between the first electronic device and the second electronic device, establishing a second communication channel between the first electronic device and the third electronic device.

[0251] Two situations of establishing the second communication channel are described below.

[0252] In the first case, after the first electronic device displays the device identification of the second electronic device and the device identification of the third electronic device on the initial interface of the gallery, the user can select the device identification of the third electronic device in the initial interface, for example, by clicking the control of the device identification of the third electronic device displayed in the initial interface of the gallery. The first electronic device can establish a second communication channel between the first electronic device and the third electronic device in response to the user's operation on the device identification of the third electronic device.

[0253] Exemplarily, if the second electronic device is the user's smart screen and the third electronic device is the user's pad, then in the first case, the first electronic device maintains a first communication channel with the user's smart screen. After the user selects the device identifier of the user's pad in the initial interface, the first electronic device can establish a second communication channel between the first electronic device and the user's pad. In this way, communication channels are established between the first electronic device and both the user's smart screen and the user's pad.

[0254] In this case, the user can select the electronic device that needs to be accessed by himself, which helps to promote the interaction between the user and the first electronic device and improve the user's usage experience.

[0255] In the second case, after the first electronic device detects another electronic device, it can directly establish a communication channel with the electronic device. In this way, after the first electronic device detects the third electronic device, it can directly establish a second communication channel between the first electronic device and the third electronic device.

[0256] Exemplarily, if the third electronic device is a user's pad, after detecting the user's pad as an electronic device, the first electronic device can directly establish a second communication channel between the first electronic device and the user's pad.

[0257] In this case, without user participation, the first electronic device can establish a communication channel with the third electronic device on its own, and access the gallery resources stored in the third electronic device in advance based on the established communication channel. In this way, when the user expects to access the gallery resources of the third electronic device, the first electronic device can immediately display the gallery resources of the third electronic device to the user, thereby improving the user experience.

[0258] Specifically, when establishing the second communication channel between the first electronic device and the third electronic device, the device information of the third electronic device may be obtained. For example, the device information may include the device name, device connection path, and device connection port, etc., so that when the first electronic device establishes a communication channel with the third electronic device, it may establish the second communication channel with the third electronic device based on the obtained information such as the device connection path and device connection port of the third electronic device.

[0259] Step S504: Based on the second communication channel, second resource information of the gallery resource in the third electronic device is loaded, and the loaded second resource information is displayed on the second interface of the gallery.

[0260] For example, in the case where the third electronic device is a user's pad, the second interface can refer to the above Figure 2b Interface UI05 is shown.

[0261] The method of loading the second resource information may refer to the method of loading the first resource information in the above step S502, and the method of displaying the second resource information may refer to the method of displaying the first resource information in the above step S502, which will not be repeated here.

[0262] In one embodiment of the present application, during the process of loading the second resource information, the first electronic device loads the second resource information of the gallery resource that the first electronic device has been authorized to access in the third electronic device based on the second communication channel.

[0263] Specifically, a user using a third electronic device sets in advance in the third electronic device to allow other electronic devices except the third electronic device to access the gallery resources stored in the third electronic device. In this way, when the first electronic device loads the second resource information, the first electronic device can directly load the second resource information of the gallery resources in the third electronic device based on the second communication channel.

[0264] In this solution, the first electronic device loads the second resource information of the gallery resources in the third electronic device that the first electronic device has been authorized to access. As for the gallery resources in the third electronic device that the first electronic device is not authorized to access, it is difficult for the first electronic device to load the resource information of such gallery resources. This can improve the privacy and security of the gallery resources in the third electronic device.

[0265] In one embodiment of the present application, the first electronic device includes a gallery and a fusion interconnected middle-office service. When the first electronic device displays second resource information on the second interface of the gallery, the fusion interconnected middle-office service loads the second resource information of the gallery resources in the third electronic device based on the second communication channel, and sends the second resource information to the gallery. In response to receiving the second resource information, the gallery displays the second resource information on the second interface.

[0266] In addition, the first electronic device may also include a gallery resource manager and a data middle platform service. When the fused interconnected middle platform service sends the second resource information to the gallery, the fused interconnected middle platform service may directly send the second resource information to the gallery, and the fused interconnected middle platform may also send the second resource information to the gallery through the gallery resource manager and the data middle platform service.

[0267] The implementation method of the fusion interconnection middle platform sending the second resource information to the gallery through the gallery resource manager and the data middle platform service can be found in the subsequent embodiments and will not be described in detail here.

[0268] As can be seen from the above, in the solution provided by the embodiment of the present application, although a first communication channel has been established between the first electronic device and the second electronic device, the first electronic device can also establish a second communication channel between the third electronic device while maintaining the above-mentioned first communication channel, thereby loading the second resource information of the gallery resources in the third electronic device based on the second communication channel, and displaying the loaded second resource information on the second interface of the gallery, it can be seen that the user can access resources stored in other electronic devices in the first electronic device. In addition, compared with the prior art, the resource access solution provided by the embodiment of the present application supports the existence of multiple communication channels at the same time. Applying the resource access solution provided by the embodiment of the present application can improve the efficiency of the first electronic device in acquiring resources and enhance the user experience.

[0269] After the first electronic device loads and obtains the second resource information, the second resource information can be displayed on the second interface of the gallery. Before the second resource information is loaded and obtained, the first electronic device can display the second resource information. Figure 1c The gallery interface UI03 shown can also display other interfaces.

[0270] In one embodiment of the present application, during the process of loading the second resource information, the first electronic device may display a resource loading animation on the fourth interface of the gallery; and after the first electronic device successfully loads the second resource information, the second resource information may be displayed on the second interface of the gallery; after the first electronic device fails to load the second resource information, the failure information may be displayed on the fifth interface of the gallery.

[0271] Exemplarily, the resource loading animation may be an animation displayed in a loading interface, and the loading interface or the fourth interface may be as follows: Figure 2aInterface UI04 is shown.

[0272] The second interface can be as follows Figure 2b Interface UI05 is shown.

[0273] The fifth interface can be as follows Figure 2c The interface UI06 shown, where the failure information can be Figure 2c Displayed in: This machine is using "keyboard and mouse sharing", please disconnect and try again.

[0274] Specifically, when the first electronic device interacts with the third electronic device through the second communication channel, it may be interfered by external factors. For example, when the first electronic device or the third electronic device is in an elevator, basement, or other place, the signal is weak, resulting in poor stability of the second communication channel. This may cause the first electronic device to fail to load the second resource information. In addition, the first electronic device may also fail to load the second resource information due to its own components.

[0275] When the first electronic device fails to load the second resource information, the first electronic device may display failure information to prompt the user that the loading of the second resource information has failed.

[0276] In this solution, the first electronic device may display different interfaces corresponding to different stages when the first electronic device is loading the second resource information, so that the user can understand the loading status of the first electronic device in real time, thereby improving the user experience.

[0277] In addition, the first electronic device can detect the reason for the failure to load the second resource information, and display the failure information including the reason for the failure when displaying the failure information on the fifth interface, so that the user can be informed of the failure to load the information, thereby improving the user's usage experience.

[0278] In one embodiment of the present application, see Figure 5b , a flow chart of a second resource access method is provided. In this embodiment, before establishing the second communication channel, the following step S505 is also included, and the above step S503 can be implemented by the following step S503A.

[0279] Step S505: determining whether the number of communication channels established by the first electronic device is less than the maximum number of communication channels established by the first electronic device.

[0280] Among them, the maximum number of channels is an integer greater than 1.

[0281] Since the communication capability of the first electronic device is limited, if the first electronic device establishes communication channels with a large number of electronic devices at the same time, it is difficult to ensure the stability of each communication channel and the data transmission capability is also weak. Therefore, the maximum number of channels for the first electronic device to establish communication channels can be pre-set. The maximum number of channels can be understood as the maximum number of communication channels that the first electronic device can withstand under the premise of ensuring channel stability and data transmission capability.

[0282] This step is described below in conjunction with two situations of establishing the second communication channel.

[0283] For the above-mentioned first case of establishing a second communication channel, after the initial interface of the gallery displays the device identification of the second electronic device and the device identification of the third electronic device, the user can select the device identification of the third electronic device in the initial interface. At this time, the first electronic device can respond to the user's selection operation and first determine whether the number of communication channels established by the first electronic device is less than the maximum number of channels. If it is determined that the number of communication channels established by the first electronic device is less than the maximum number of channels, then establish a second communication channel between the first electronic device and the third electronic device.

[0284] Exemplarily, if the second electronic device is the user's smart screen and the third electronic device is the user's pad, the initial interface of the gallery displays the device identification of the user's smart screen and the device identification of the user's pad. After the user selects the device identification of the user's pad in the initial interface, the first electronic device can respond to the user's selection operation and first determine whether the number of communication channels established by the first electronic device is less than the maximum number of channels. If it is determined that the number of communication channels established by the first electronic device is less than the maximum number of channels, a second communication channel between the first electronic device and the user's pad is established.

[0285] For the above-mentioned second situation of establishing the second communication channel, after the first electronic device detects the third electronic device, it can determine whether the number of communication channels established by the first electronic device is less than the maximum number of channels. If it is determined that the number of communication channels established by the first electronic device is less than the maximum number of channels, the second communication channel between the first electronic device and the third electronic device is established.

[0286] Exemplarily, if the third electronic device is the user's pad, then when the first electronic device detects the user's pad, the first electronic device can immediately determine whether the number of communication channels established by the first electronic device is less than the maximum number of channels. If it is determined that the number of communication channels established by the first electronic device is less than the maximum number of channels, a second communication channel between the first electronic device and the user's pad is established.

[0287] When it is determined in the above step S505 that the number of communication channels established by the first electronic device is less than the above maximum number of channels, the following step S503A may be executed.

[0288] Step S503A: while maintaining the first communication channel between the first electronic device and the second electronic device, if the number of communication channels established by the first electronic device is less than the maximum number of communication channels established by the first electronic device, a second communication channel is established between the first electronic device and the third electronic device.

[0289] The implementation method of establishing the second communication channel can refer to the above step S503, which will not be repeated here.

[0290] From the above, it can be seen that in the solution provided by the embodiment of the present application, as long as the number of communication channels established by the first electronic device is less than the maximum number of channels, the first electronic device can directly establish a second communication channel between the first electronic device and the third electronic device, thereby loading the second resource information of the gallery resources in the third electronic device based on the second communication channel, and displaying the loaded second resource information on the second interface of the gallery. It can be seen that compared with the prior art, the resource access solution provided by the embodiment of the present application can improve the efficiency of the first electronic device in acquiring resources and enhance the user experience.

[0291] The following describes the situation in which the number of communication channels established by the first electronic device in the above step S505 is equal to the maximum number of channels.

[0292] In one embodiment of the present application, if the number of communication channels established by the first electronic device is equal to the maximum number of channels, one of the communication channels established by the first electronic device is disconnected, and then a second communication channel is established between the first electronic device and the third electronic device.

[0293] Specifically, when the number of communication channels established by the first electronic device is equal to the maximum number of channels, it means that it is difficult for the first electronic device to establish a new communication channel while maintaining the existing communication channel. At this time, one of the communication channels established by the first electronic device can be disconnected, so that the number of communication channels established by the first electronic device is less than the maximum number of channels, and the above step 503 can be continued to establish a second communication channel between the first electronic device and the third electronic device.

[0294] The method of disconnecting one of the communication channels established by the first electronic device can be found in the subsequent embodiments and will not be described in detail here.

[0295] In one embodiment of the present application, the first electronic device includes a gallery and a fusion interconnection middle platform service. When the first electronic device determines whether the number of communication channels established by the first electronic device is less than the above-mentioned maximum number of channels, the fusion interconnection middle platform service can determine whether the number of communication channels established by the first electronic device is less than the above-mentioned maximum number of channels. If the fusion interconnection middle platform service determines that the number of communication channels established by the first electronic device is equal to the maximum number of channels, the fusion interconnection middle platform service can disconnect one of the established communication channels.

[0296] As can be seen from the above, in the solution provided by the embodiment of the present application, the number of communication channels established by the first electronic device is equal to the maximum number of channels, indicating that the first electronic device has reached the upper limit of the number of connections. At this time, the first electronic device can disconnect one of the connected communication channels and then continue to execute the subsequent step S503. In this way, the method of disconnecting a connected communication channel can enable the first electronic device to flexibly switch the electronic device to which it is connected, so that the first electronic device can subsequently access the resources in the electronic device that the user expects to access, thereby improving the flexibility of the first electronic device in accessing resources.

[0297] Four implementations of the first electronic device disconnecting one of the connected communication channels mentioned in the above step S505 are described below.

[0298] In the first implementation method, the first electronic device can display channel prompt information on the third interface of the gallery, and the user can select a second device identifier from the device identifiers of the second electronic devices included in the channel prompt information, so that the first electronic device can respond to the user's operation on the device identifier in the channel prompt information and disconnect the communication channel between the first electronic device and the electronic device indicated by the device identifier acted by the user.

[0299] When the first electronic device displays the channel prompt information on the third interface, it also displays the device identifiers of the second electronic devices connected to the established communication channel contained in the channel prompt information, so that the user can select the device identifier from them, and the first electronic device can detect the user's operation on the device identifier in the channel prompt information. For example, the user can click on the control of the device identifier of the second electronic device contained in the channel prompt information, and the first electronic device can detect the user's click operation. In response to the user's operation, the first electronic device determines the device identifier acted by the user, and determines the electronic device indicated by the device identifier acted by the user, and then disconnects the communication channel between the first electronic device and the determined electronic device.

[0300] For example, the third interface showing the channel prompt information can be seen in the above Figure 2g The interface UI10 shown, Figure 2gIn the pop-up window in the interface, the channel reminder information includes the device identifiers of the user's device 1, the user's device 2, and the user's smart screen. After the user selects the device identifier of the user's device 1, the first electronic device can respond to the user's operation and determine that the electronic device indicated by the device identifier acted by the user is the user's device 1, and then disconnect the communication channel between the first electronic device and the user's device 1.

[0301] In one embodiment of the present application, in the above-mentioned case where one of the established communication channels is disconnected by the fusion interconnection middle office service, the fusion interconnection middle office service may send a channel disconnection request to the gallery; the gallery responds to the channel disconnection request and displays a channel disconnection prompt message in the third interface of the gallery; the gallery responds to the user's operation on the device identifier in the channel disconnection prompt message, determines the target device identifier of the device to be disconnected selected by the user, and sends the target device identifier to the fusion interconnection middle office service; the fusion interconnection middle office service disconnects the communication channel between the first electronic device and the device to be disconnected based on the target device identifier.

[0302] In addition, the first electronic device may also include a gallery resource manager and a data middle-office service. When the fused interconnection middle-office service sends a channel disconnection request to the gallery, the fused interconnection middle-office service may directly send the channel disconnection request to the gallery. The fused interconnection middle-office service may also send a channel disconnection request to the gallery through the gallery resource manager and the data middle-office service.

[0303] When the gallery sends the target device identifier to the fusion interconnection middle office service, the gallery can send the target device identifier to the fusion interconnection middle office service directly, or the gallery can send the target device identifier to the gallery through the gallery resource manager and the data middle office service.

[0304] The implementation method of the fusion interconnected middle office service sending a channel disconnection request to the gallery through the gallery resource manager and the data middle office service, and the implementation method of the gallery sending a target device identifier to the gallery through the gallery resource manager and the data middle office service can be found in the subsequent embodiments and will not be described in detail here.

[0305] In this solution, the channel prompt information is displayed in the gallery interface to interact with the user, so that the user can select the communication channel to be disconnected, so that the operation of disconnecting the communication channel meets the user's expectations, thereby improving the user experience.

[0306] In a second implementation manner, the first electronic device may disconnect the communication channel between the second electronic devices that are connected first, or disconnect the communication channel between the second electronic devices that are connected most recently.

[0307] In a third implementation, for each second electronic device that establishes a communication channel with the first electronic device, the first electronic device can record the time of the most recent access to the gallery resources of the second electronic device, so that when it is necessary to disconnect the communication channel with a second electronic device, the communication channel between the second electronic device corresponding to the earliest access time among the recorded access times can be disconnected.

[0308] In a fourth implementation manner, the first electronic device may directly disconnect the communication channel with any second electronic device.

[0309] In one embodiment of the present application, see Figure 5c , a flow chart of a third resource access method is provided. In this embodiment, before establishing the above-mentioned second communication channel, the following step S506 is also included.

[0310] Step S506: Detect whether a communication channel has been established between the first electronic device and the third electronic device. If not, execute step S503.

[0311] Specifically, the first electronic device can record the electronic devices with which the communication channel has been established, so that before establishing the above-mentioned second communication channel, it can be searched in the recorded electronic devices whether there is a third electronic device. If so, it means that the first electronic device has established a communication channel with the third electronic device; if not, it means that the first electronic device has not established a communication channel with the third electronic device. At this time, it is necessary to execute step S503 to establish a second communication channel between the first electronic device and the third electronic device.

[0312] In one embodiment of the present application, the first electronic device includes a fusion interconnection middle platform service. When detecting whether a communication channel has been established between the first electronic device and the third electronic device, the fusion interconnection middle platform service can detect whether a communication channel has been established between the first electronic device and the third electronic device.

[0313] As can be seen from the above, in the solution provided by the embodiment of the present application, by detecting whether a communication channel has been established between the first electronic device and the third electronic device, it is possible to prevent the repeated establishment of the same communication channel when the first electronic device and the third electronic device have already established a communication channel, thereby saving communication channel resources. And the repeated establishment of the same communication channel by the first electronic device may cause the first electronic device to report an error, therefore, performing the above detection before establishing the above second communication channel can also reduce the risk of the first electronic device reporting an error.

[0314] After detecting the second electronic device and the third electronic device, the first electronic device may sort the device identifications of the second electronic device and the third electronic device, and display the device identifications of the electronic devices in sequence in the gallery interface.

[0315] For example, the device identifications of the electronic devices may be displayed in order through any one of the following two implementations.

[0316] In a first implementation manner, the first electronic device may display the device identification of the second electronic device and the device identification of the third electronic device on the initial interface of the gallery according to the order in which the electronic devices are arranged.

[0317] Among them, the type arrangement order of the above-mentioned electronic devices can be the arrangement order set by the user according to his or her own preferences. In this way, the device identifications are displayed in the gallery interface according to the type arrangement order, and the user can first check the device identifications of his or her favorite devices, which can improve the user experience.

[0318] For example, the above types may be arranged in the following order: mobile phone, tablet computer (portable Android device, pad), computer, and smart screen.

[0319] For example, see Figure 1c , Figure 1c The order of the device identifiers in the interface UI03 shown is: this device, the user's pad, and the user's smart screen.

[0320] In a second implementation manner, the first electronic device may display the device identification of the second electronic device and the device identification of the third electronic device on the interface of the gallery according to the time when the electronic device is detected.

[0321] In this case, the device identification of the second electronic device and the device identification of the third electronic device can be displayed on the initial interface of the gallery in the order of the detected time in positive or reverse order. In the case of the order of the detected time in positive order, the later the electronic device is detected, the later the device identification of the electronic device is; in the case of the order of the detected time in reverse order, the later the electronic device is detected, the earlier the device identification of the electronic device is.

[0322] In this implementation, the device identification of each electronic device is displayed according to the time when the electronic device is detected, so that when the user checks the device identification of each electronic device, he can know the order in which the electronic devices are detected, so that the user can quickly determine the electronic device he wants to access according to the order. For example, if the device identification is displayed in the order of the detection time, the user can quickly determine that the device identification at the end is the device identification of the electronic device most recently detected by the first electronic device. It can be seen that applying this implementation when displaying device identification can provide users with convenience in accessing resources.

[0323] In addition, the first electronic device can detect electronic devices multiple times in the device usage environment. If the first electronic device detects a new electronic device, that is, detects an electronic device that has not been detected before, the device identification of the new electronic device can be added to the device identification display area of ​​the gallery interface. In this way, as the number of new electronic devices continues to increase, the device identification display area may find it difficult to display the device identifications of all detected electronic devices, that is, there is insufficient space in the device identification display area on the gallery interface. In this case, the device identification of the new electronic device can be displayed in a hidden manner, and the prompt information of the new electronic device can be displayed on the gallery interface.

[0324] Among them, the above-mentioned device identification display area can be a pre-set area in the gallery interface.

[0325] Specifically, when the first electronic device detects a newly added electronic device, it can calculate the length required to display the device identification of each electronic device on the gallery interface based on the device identification of each detected electronic device. If the calculated length exceeds the width of the device identification display area, it can be determined that the device identification display area on the gallery interface is insufficient. At this time, the device identification of the newly added electronic device is displayed in a hidden manner. It can be understood that when the first electronic device displays each device identification in the device identification display area, it displays a device identification at a certain distance. Due to the insufficient space in the device identification display area, when the display position of the device identification of the newly added electronic device is determined based on the last device identification and the distance between the identifications, the display position exceeds the device identification display area, thus hiding the device identification of the newly added electronic device. In this case, the user can slide in the device identification display area, so that the display position of the newly added electronic device can be re-determined based on the position of the last device identification after sliding and the distance between the identifications. If the new display position is located in the device identification display area, the device identification of the newly added electronic device can be displayed at the new display position.

[0326] In this solution, when a new electronic device is detected and it is determined that there is insufficient space in the device identification display area, a new electronic device prompt message can be displayed on the gallery interface to prompt the user that the first electronic device has detected a new electronic device. This can improve the convenience of the user's access to the gallery resources of the new electronic device.

[0327] For example, see Figure 3 , Figure 3 The interface UI11 shown displays the device identifications of three devices: this device, the user's pad, and the user's smart screen. At this time, if the first electronic device detects a new electronic device, for example, the first electronic device detects the user's computer, the first electronic device needs to display the device identification of the user's computer.

[0328] When the first electronic device displays the device identification of the user's computer, it calculates that the length required to display the device identification of each electronic device exceeds the width of the device identification display area based on the device identification of each electronic device. At this time, a device identification can be displayed at a certain interval. Due to insufficient space in the device identification display area, when the device identification of the last user's computer is displayed, the display position of the device identification will exceed the device identification display area, so that the device identification of the user's computer is displayed in a hidden manner. In addition, when the first electronic device calculates that the length required to display each device identification exceeds the width of the device identification display area, it can display a new electronic device prompt in the gallery interface, see Figure 3 The bubble box 301 in the.

[0329] In one embodiment of the present application, after the first electronic device has loaded and displayed the second resource information of the gallery resources in the third electronic device, the user can use the second resource information to save all or part of the gallery resources in the third electronic device according to his or her own preferences. In this case, the first electronic device can detect the user's gallery resource saving instruction, and in response to the instruction, create an album in the gallery based on preset source characters and the device identification of the third electronic device, and save the gallery resources in the created album.

[0330] The source characters are pre-set characters, for example, the source characters may be “from”, “derived from” or other characters.

[0331] For example, see Figure 4a In the interface UI12 shown, the third electronic device is the user's pad, and the second resource information is the album thumbnail of the gallery resource in the user's pad. In this way, the first electronic device displays the second resource information in the gallery interface, that is, displays the second resource information in the gallery interface. Figure 4a The user can click on one of the five album thumbnails shown in the figure. After the first electronic device detects the user's click operation, it can respond to the click operation, determine the target album thumbnail clicked by the user, and load the gallery resource corresponding to the target album thumbnail from the user's pad. After the first electronic device completes loading the gallery resource, it can display the following Figure 4b The gallery interface shown, Figure 4b The gallery interface UI13 shown shows 12 pictures, from which the user can select the picture he wants to save. For example, if the user wants to save the first picture, the user can long press the first picture, and at this time, the first picture is in a selected state.

[0332] In addition, the user can select multiple images, for example, the first three images. Figure 4c , Figure 4cThe first three pictures in the gallery interface UI14 shown are in a selected state, and the other pictures are in an unselected state. The user can click the save option in the gallery interface. At this time, it can be considered that the user has initiated a gallery resource saving instruction for the first three pictures. The first electronic device responds to the user's operation of clicking the save option, and also responds to the gallery resource saving instruction. It determines the album name of the album to be created based on the preset source character and the device identification of the user's pad, and creates an album with the determined album name in the gallery of the first electronic device. For example, if the source character is "from" and the device identification of the first device is "user's pad", then based on the source character and the device identification of the first device, it can be determined that the album name of the album to be created is "from the user's pad", so that an album with the album name "from the user's pad" can be created in the gallery. After the album is created in this way, the first three pictures selected by the user can be saved in the album.

[0333] As can be seen from the above, in the solution provided by the embodiment of the present application, the first electronic device can save the library resources specified by the user in response to the user's library resource saving instruction, and can save the library resources in an album created based on the source character and the device identification of the third electronic device, so that when the subsequent user checks the library resources, he can quickly find the album that stores the library resources in the third electronic device, so as to quickly view the library resources loaded from the third electronic device and saved by the first electronic device. Therefore, the resource access solution provided by the embodiment of the present application can improve the user experience.

[0334] Next, the resource access method provided in the embodiment of the present application is further explained in combination with the software architecture of the electronic device.

[0335] First, the software architecture of the electronic device provided in the embodiments of the present application is introduced.

[0336] For example, Figure 6 The software structure diagram of the electronic device to which the embodiment of the present application is applicable is shown in FIG. The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.

[0337] The layered architecture divides the software system of the electronic device into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software system can be divided into five layers, namely, application layer (applications), application framework layer (application framework), hardware abstract layer (HAL), kernel layer (kernel) and hardware layer.

[0338] The application layer can include a series of application packages. The application layer runs applications by calling the application programming interface (API) provided by the application framework layer. Figure 6 As shown, the application package may include applications such as browser, gallery, music, and video. It is understandable that the port of each of the above applications may be used to receive data.

[0339] The application framework layer provides API and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 6 As shown, the application framework layer may include a window manager, a content provider, a view system, a gallery resource manager, a notification manager, and a Dynamic Host Configuration Protocol (DHCP) module.

[0340] The hardware abstraction layer can include multiple library modules, such as display library modules and motor library modules. The electronic device system can load the corresponding library modules for the device hardware, thereby achieving the purpose of the application framework layer accessing the device hardware. The hardware abstraction layer can also include virtual modules such as the data middle platform service and the fusion interconnection middle platform service. The data middle platform service establishes a connection with the gallery resource manager on the one hand, and establishes a connection with the fusion interconnection middle platform service on the other hand, which is used to control the opening and closing of the resource access function of the electronic device. The fusion interconnection middle platform service is used to interconnect with other electronic devices to achieve data interaction.

[0341] The kernel layer is a layer between hardware and software. The kernel layer is used to drive the hardware so that the hardware works. The kernel layer at least includes display driver, audio driver, sensor driver and motor driver, etc., which are not limited by the present application embodiment. It can be understood that display driver, audio driver, sensor driver and motor driver, etc. can all be regarded as a driver node. Each of the above-mentioned driver nodes includes an interface that can be used to receive data.

[0342] The hardware layer is the lowest level of the electronic device system, and may be composed of various physical components required by the CPU, NPU, memory, input / output interface (I / O), etc. Some or all steps in the resource access solution provided in the embodiment of the present application may be executed by the CPU, thereby achieving cross-device access to resources.

[0343] Secondly, based on the software architecture of the above-mentioned electronic device (the above-mentioned first electronic device), the resource access method provided by the embodiment of the present application is further explained. The following is an example in which the user's smart screen mentioned in the above-mentioned embodiment is the second electronic device and the user's pad is the third electronic device.

[0344] In one embodiment of the present application, see Figure 7 , provides a schematic diagram of the interaction of modules in a first electronic device, Figure 7 The entire interactive process of opening the gallery by the first electronic device is shown, including the following steps S701-S717.

[0345] Step S701: the first electronic device starts a gallery application in response to a user opening a gallery operation.

[0346] Exemplary, reference Figure 1a The user can click on the gallery application icon 101 in the system interface UI01 of the first electronic device, so that the first electronic device can detect the operation and start the gallery application in response to the operation.

[0347] Step S702: the gallery sends a setting device monitoring instruction to the gallery resource manager.

[0348] Step S703: The gallery resource manager sends a binding request to the data middle platform service in response to the setting device listening instruction.

[0349] Among them, the binding request is used to request the data middle platform service to bind with the gallery resource manager, that is, to establish a connection.

[0350] Step S704: The data middle platform service responds to the binding request and binds with the gallery resource manager.

[0351] Step S705: The data middle platform service sends a binding request to the fusion interconnection middle platform service.

[0352] Step S706: The fusion interconnection middle office service responds to the binding request and binds with the data middle office service.

[0353] Step S707: After the fusion interconnection middle office service and the data middle office service are successfully bound, a binding success notification is fed back to the data middle office service.

[0354] Step S708: After the data middle platform service receives the binding success notification and successfully binds with the gallery resource manager, it feeds back the binding success notification to the gallery resource manager.

[0355] Step S709: After receiving the binding success notification, the gallery resource manager sends a resource access service success callback notification to the gallery.

[0356] The gallery receives a successful callback notification of the resource access service, indicating that the first electronic device has enabled the resource access function.

[0357] Step S710: After receiving the resource access service success callback notification, the gallery sends a device list query request to the gallery resource manager.

[0358] The device list query request is used to request a query of other electronic devices detected by the first electronic device.

[0359] Step S711: In response to the device query request, the gallery resource manager sends a device list acquisition request to the data middle platform service.

[0360] The device list acquisition request is used to request to obtain device information of other electronic devices detected by the first electronic device.

[0361] Step S712: After receiving the device list acquisition request, the data middle office service sends a device list acquisition request to the fusion interconnection middle office service.

[0362] Step S713: After receiving the device list acquisition request, the fusion interconnection middle platform service responds to the request and detects whether there are other electronic devices in the device usage environment where the fusion interconnection middle platform service is located.

[0363] The implementation method of the Fusion Interconnection Middle Platform Service to detect whether there are other electronic devices in the device usage environment where it is located can be found in the above Figure 1a The description is not repeated here.

[0364] Assume that the user's pad and smart screen exist in the usage environment of the first electronic device. In this case, execute the following step S714.

[0365] Step S714: After the fusion interconnection middle office service detects the user's pad and the user's smart screen, it sends a device list containing the device identifiers of the two electronic devices, the user's pad and the user's smart screen, to the data middle office service.

[0366] Specifically, the device identifiers included in the above device list may be the device names of the pad and smart screen, or may be information such as the Media Access Control Address (MAC) address of the pad and smart screen.

[0367] Step S715: The data middle platform service receives the device list and sends the device list to the gallery resource manager.

[0368] Step S716: The gallery resource manager receives the device list and sends the device list to the gallery.

[0369] Step S717: The gallery receives the device list and, based on the device list, displays the device identifications of the two electronic devices, the user's pad and the user's smart screen, in the gallery interface.

[0370] For example, see Figure 1cAfter receiving the device list, the gallery can display Figure 1c The interface UI03 shown shows the user the detected identification of the user's pad and smart screen, so that the user can know that there is a pad and a smart screen in the usage environment of the first electronic device that can provide resources to the first electronic device.

[0371] In the process from when the user opens the gallery to when the gallery receives the device list, the first electronic device can display the gallery application startup loading interface or the preset cover. Figure 1a As shown in the system interface UI01, after the first electronic device detects the user's operation of opening the gallery, the interface displayed by the first electronic device can be changed from Figure 1a The interface UI01 shown jumps to the application startup loading interface or preset cover of the gallery. At the same time, the gallery, gallery resource manager, data middle platform service and fusion interconnection middle platform service interact with each other to execute steps S701-S716. When executing step S716, after the gallery receives the device list, the interface displayed by the first electronic device jumps from the application startup loading interface or preset cover of the gallery to the interface shown in FIG. Figure 1c The gallery interface UI03 is shown.

[0372] In one embodiment of the present application, see Figure 8 , provides a schematic diagram of the interaction of modules in a second electronic device, Figure 8 The diagram shows the interaction process between the modules in the first electronic device when the first electronic device accesses the gallery resources stored in the user's pad when the gallery is in the foreground running state, including the following steps S801-S812.

[0373] Step S801: the gallery generates a connection request including the device identification of the user's pad in response to the user's selection operation on the displayed device identification of the user's pad.

[0374] The connection request is used to request the first electronic device to connect to the user's pad.

[0375] For example, see Figure 1c , in the first electronic device to show Figure 1c In the gallery interface UI03 shown, the user can click on the identification icon 105 of the user's pad in the interface, so that the gallery can generate a connection request containing the device identification of the user's pad in response to the selection operation for the identification icon 105.

[0376] Step S802: the gallery sends a connection request including the device identification of the user's pad to the gallery resource manager.

[0377] Step S803: In response to the connection request, the gallery resource manager sends a call request including the device identification of the user's pad to the data middle platform service.

[0378] Among them, the above-mentioned call request is used to request the data middle office service to call the fusion interconnection middle office service to obtain the gallery resources stored in the user's pad.

[0379] Step S804: In response to the call request, the data middle platform service sends a resource acquisition request including the device identifier of the user's pad to the fusion interconnection middle platform service.

[0380] Among them, the above resource acquisition request is used to request the fusion interconnection middle platform service to obtain the gallery resources stored in the user's pad.

[0381] Step S805: The fusion interconnection middle platform service responds to the resource acquisition request and detects whether a communication channel is established with the user's pad.

[0382] Step S806: If the fusion interconnection middle platform service detects that no communication channel has been established with the user's pad, it determines whether the number of communication channels established by the fusion interconnection middle platform service has reached a preset upper limit.

[0383] Step S807: If the fusion interconnection middle platform service determines that the number of established communication channels has not reached the preset upper limit, it establishes a communication channel between itself and the user's pad.

[0384] Step S808: The fusion interconnection middle platform service uses the established communication channel to obtain resource information of the gallery resources in the user's pad.

[0385] The resource information may include index information, download addresses or album thumbnails of gallery resources in the user's pad.

[0386] Step S809: The fusion interconnection middle platform service sends resource information to the data middle platform service.

[0387] Step S810: The data middle platform service sends resource information to the gallery resource manager.

[0388] Step S811: the gallery resource manager sends resource information to the gallery.

[0389] Step S812: The gallery displays album thumbnails of gallery resources in the user's pad according to the resource information.

[0390] Exemplarily, if the above-mentioned resource information includes album thumbnails of the gallery resources in the user's pad, then after obtaining the above-mentioned resource information, the gallery also obtains the album thumbnails in the resource information, and thus displays the album thumbnails; if the above-mentioned resource information includes other information such as index information, download address, etc. of the gallery resources in the user's pad, then the gallery can obtain the album thumbnails of the gallery resources in the user's pad based on the information, and then display the album thumbnails.

[0391] For example, if the resource information includes a download address of a gallery resource in the user's pad, the gallery can download the album thumbnails of the gallery resource in the user's pad according to the download address, thereby displaying the album thumbnails.

[0392] In addition, the gallery can record the interaction status between the electronic device indicated by each displayed device identification and the first electronic device, and the above interaction status can be detected as unconnected, connected, or offline, etc. When the gallery obtains the gallery resources loaded by the fusion interconnection middle platform service, the gallery can determine the electronic device to which the gallery resources belong, thereby recording the interaction status between the electronic device and the first electronic device as connected.

[0393] For example, see Figure 2b After obtaining resource information, the gallery can display Figure 2b Interface UI05 shown contains album thumbnails of gallery resources in the user's pad.

[0394] When the user selects the device identification to obtain the gallery resources, the first electronic device can display the following Figure 2a In this way, before the user selects the device identification, the first electronic device can display the following Figure 1c In the interface UI03 shown in the figure, after the user selects the device identification, the interface displayed by the first electronic device can be Figure 1c The interface UI03 shown jumps to Figure 2a As shown in the interface UI04, at the same time, the gallery, gallery resource manager, data middle platform service and fusion interconnection middle platform service interact with each other, and steps S801-S812 are executed. When executing step S812, after the gallery obtains the gallery resources, the interface displayed by the first electronic device changes from Figure 2a The interface UI04 shown jumps to Figure 2b The interface shown is UI05.

[0395] In the solution provided in the embodiment of the present application, even if there are other devices that have established communication channels with the first electronic device, as long as the number of communication channels established with the first electronic device is less than a preset number, the first electronic device can directly establish a communication channel with the second electronic device, thereby loading the information of the gallery resources in the second electronic device based on the established communication channel, and displaying the loaded gallery resources on the gallery interface. It can be seen that compared with the prior art, the resource access solution provided in the embodiment of the present application can improve the efficiency of electronic devices in acquiring resources and enhance the user experience.

[0396] In one embodiment of the present application, when executing the above step S806, if the fusion interconnection middle platform service determines that the number of established communication channels has reached a preset upper limit, it is necessary to disconnect one of the established communication channels and execute the step of establishing a first communication channel between it and the second electronic device.

[0397] In the solution provided in the embodiment of the present application, disconnecting a connected communication channel enables the first electronic device to flexibly switch the electronic device to which it is connected, so that the first electronic device can subsequently access the resources in the device that the user wants to access, thereby improving the flexibility of the electronic device in accessing resources.

[0398] In one embodiment of the present application, see Fig. 9 , provides a schematic diagram of the interaction of modules in a third electronic device, Fig. 9 The interactive process shown is an interactive process of disconnecting an established communication channel when the fusion interconnection middle station service determines that the number of established communication channels has reached a preset upper limit. The interactive process includes the following steps S901-S916:

[0399] Step S901: If the fusion interconnection middle platform service determines that the number of established communication channels has reached a preset upper limit, a channel disconnection request is generated.

[0400] The channel disconnection request may carry the device identification of the electronic device with which the communication channel has been established, or may not carry the device identification of the electronic device with which the communication channel has been established.

[0401] Step S902: The fusion interconnection middle office service sends a channel disconnection request to the data middle office service.

[0402] Step S903: The data middle platform service sends a channel disconnect request to the gallery resource manager.

[0403] Step S904: the gallery resource manager sends a channel disconnection request to the gallery.

[0404] Step S905: In response to the channel disconnection request, the gallery displays a channel disconnection prompt message including a device identifier of the connected device in the gallery interface.

[0405] Exemplarily, when the channel disconnection request carries the device identification of an electronic device with which a communication channel has been established, the gallery can directly parse the channel disconnection request to obtain the device identification carried in the request, thereby displaying the channel disconnection prompt information including the device identification of the connected device in the gallery interface.

[0406] In the case where the channel disconnection request does not carry the device identification of the electronic device with which the communication channel has been established, since the gallery itself can record the interaction status between the electronic device indicated by each displayed device identification and the first electronic device, the above-mentioned interaction status can be detected as unconnected, connected, or offline, etc. After obtaining the resource information, the gallery can determine the electronic device corresponding to the resource information, thereby recording the interaction status between the electronic device and the first electronic device as connected. In this way, when responding to the channel disconnection request, the gallery can determine the device identification with the interaction status as connected according to the interaction status corresponding to each recorded device identification, thereby displaying the channel disconnection prompt information containing the determined device identification.

[0407] For example, see Figure 2g , the above prompt information can be Figure 2g The information displayed on the UI10 is shown in the figure. In addition, the gallery responds to the channel disconnection request, and the gallery interface changes from Figure 2a The interface UI04 shown is transformed into Figure 2g The interface shown is UI10.

[0408] Step S906: In response to the user's selection operation of selecting the device identifier included in the channel disconnection prompt information, the gallery determines the device identifier of the device 1 of the user selected by the user.

[0409] For example, in Figure 2g In the interface UI10 shown, the channel disconnection prompt information is displayed in the form of a pop-up window, which displays the device identifiers of the three electronic devices, namely, the user's device 1, the user's device 2, and the user's smart screen. The three electronic devices, namely, the user's device 1, the user's device 2, and the user's smart screen, have established a communication channel with the first electronic device. After the user selects the device identifier of the user's device 1 in the pop-up window, the pop-up window can be canceled. At this time, the interface displayed by the first electronic device is as follows Figure 2g The interface UI10 shown is transformed into Figure 2a The interface shown is UI04.

[0410] Step S907: the gallery sends the device identification of the user's device 1 to the gallery resource manager.

[0411] Step S908: the gallery resource manager sends the device identifier of the user's device 1 to the data middle platform service.

[0412] Step S909: the data middle platform service sends the device identifier of the user's device 1 to the fusion interconnection middle platform service.

[0413] Step S910: The converged interconnection middle platform service disconnects the second communication channel between the first electronic device and the user's device 1 based on the device identification of the user's device 1.

[0414] If the device identification of device 1 is displayed in the interface displayed by the first electronic device before the communication connection between the first electronic device and the above-mentioned device 1 is disconnected, then after the communication connection between the first electronic device and the device 1 is disconnected, the identification of device 1 is no longer displayed, and the content displayed in the interface changes. If the device identification of device 1 is not displayed in the interface displayed by the first electronic device before the communication connection between the first electronic device and the above-mentioned device 1 is disconnected, then after the communication connection between the first electronic device and the device 1 is disconnected, the content displayed in the interface does not change.

[0415] Step S911: The fusion interconnection middle platform service establishes a communication channel between itself and the user's pad.

[0416] Step S912: The fusion interconnection middle platform service uses the established communication channel to obtain resource information of the gallery resources in the user's pad.

[0417] Step S913: The fusion interconnection middle platform service sends resource information to the data middle platform service.

[0418] Step S914: The data middle platform service sends resource information to the gallery resource manager.

[0419] Step S915: the gallery resource manager sends resource information to the gallery.

[0420] Step S916: The gallery displays album thumbnails of the gallery resources in the user's pad according to the resource information.

[0421] The above steps S911-S916 are respectively the same as the above steps S807-S812, and will not be described in detail here.

[0422] In this solution, the user is interacted with by displaying the channel disconnection prompt information in the gallery interface, so that the user can select the communication channel to be disconnected, so that the operation of disconnecting the communication channel meets the user's expectations, thereby improving the user experience.

[0423] In one embodiment of the present application, the user Figure 2gAfter selecting the device identification of the electronic device whose communication channel is to be disconnected in the channel disconnection prompt information displayed in the interface UI10 shown in the figure, that is, after the user selects the device identification of the user's device 1, the interface displayed by the first electronic device is as follows: Figure 2g The interface UI10 shown is transformed into Figure 2a As shown in the interface UI04, until the gallery obtains resource information and displays the album thumbnails of the gallery resources in the user's pad, the interface displayed by the first electronic device is changed to the following Figure 2a The interface UI04 shown jumps to Figure 2b Interface UI05 is shown. In the solution provided in the embodiment of the present application, even if there are other devices that have established communication channels with the first electronic device, as long as the number of communication channels established with the first electronic device is less than the preset number, the first electronic device can directly establish a communication channel with the user's pad (that is, the second electronic device), thereby realizing the loading of gallery resources based on the communication channel. It can be seen that compared with the prior art, the resource access solution provided in the embodiment of the present application can improve the efficiency of electronic devices in acquiring resources and enhance the user experience.

[0424] In one embodiment of the present application, see Fig.10 , provides a schematic diagram of the interaction of modules in a fourth electronic device, Fig.10 The interactive process shown is an interactive process of saving the gallery resources displayed on the interface, and the interactive process includes the following steps S1001-S1002:

[0425] Step S1001: Detecting that a user initiates a gallery resource saving instruction.

[0426] Step S1002: the gallery creates an album in the gallery in response to the gallery resource saving instruction based on the preset source character and the device identification of the user's pad, and saves the gallery resources in the created album.

[0427] The character content of the source character may be "derived from", "comes from" or "belongs to" and the like.

[0428] For example, if the character content of the source character is "from", an album is created in the gallery based on the character and the device identification of the user's pad, and the album name of the created album may be "from the user's pad".

[0429] For example, when the first electronic device displays the gallery resources loaded from other electronic devices, the user selects the album that he wants to open from the albums included in the interface, such as Figure 4a In the interface UI12 shown, the user can open the screenshot and screen recording album from the five albums displayed. After opening the album, the interface displayed by the first electronic device changes from Figure 4a The interface UI12 shown jumps to Figure 4b The interface UI13 is shown. The user can also select Figure 4b The picture included in the interface UI13 shown, for example, long press the picture, at this time, the interface displayed by the first electronic device changes from Figure 4b The interface UI13 shown jumps to Figure 4c The interface UI14 is shown. The user can select Figure 4c The save option 404 in the interface UI13 is shown, thereby initiating a gallery resource save instruction. In response to the instruction, the gallery can create an album in the gallery based on the preset source character and the device identification of the user's pad, and save the user's selected pictures in the created album. In this way, when the gallery displays the gallery resources of the first electronic device again, the created album can be added to the gallery interface.

[0430] In the solution provided by the embodiment of the present application, the first electronic device can save the library resources specified by the user in response to the user's library resource saving instruction, and can save the library resources in an album created based on the source character and the device identification of the user's pad (that is, the second electronic device), so that when the subsequent user checks the library resources, he can quickly find the album that stores the library resources in the second electronic device, so as to quickly view the library resources loaded from the second electronic device and stored by the first electronic device. Therefore, applying the resource access solution provided by the embodiment of the present application can improve the user experience.

[0431] In one embodiment of the present application, see Fig.11 , provides a schematic diagram of the interaction of modules in a fifth electronic device, Fig.11 The diagram shows the interaction between several modules when the converged interconnection middle platform service detects a newly added device, including the following steps S1101-S1110.

[0432] Step S1101: When the fusion interconnection middle platform service is in working state or after responding to a device list acquisition request, the fusion interconnection middle platform service periodically detects other electronic devices in the device usage environment where the fusion interconnection middle platform service is located.

[0433] For example, other electronic devices in the use environment of the device may be detected at intervals of one minute, five minutes, or other time periods.

[0434] Step S1102: if the converged interconnection middle platform service detects a newly added electronic device, device 3 of the user, then an access notification including the device identifier of device 3 is generated.

[0435] Step S1103: The fusion interconnection middle office service sends an access notification to the data middle office service.

[0436] Step S1104: the data middle platform service generates device list change callback information including the device identification of device 3 according to the device identification of device 3 carried in the access notification.

[0437] Step S1105: The data middle platform service sends a device list change callback message to the gallery resource manager.

[0438] Step S1106: the gallery resource manager obtains the device identification of device 3 from the device list change callback information.

[0439] Step S1107: the gallery resource manager sends the device identification of device 3 to the gallery.

[0440] Step S1108: The gallery detects whether there is an empty area in the interface for displaying the device logo.

[0441] Step S1109: If the gallery detects an empty area, the device identification of device 3 is displayed in the empty area.

[0442] Step S1110: If the gallery detects that there is no free area, the viewing reminder information of device 3 is displayed in the gallery interface.

[0443] For example, see Figure 3 In the interface UI11 shown, if there is no free area in the gallery interface, the viewing reminder information is displayed in the form of a bubble box 301 in the gallery interface.

[0444] In one embodiment of the present application, see Fig.12 , provides a schematic diagram of the interaction of modules in a sixth electronic device, Fig.12 The diagram shows the interaction between several modules when the converged interconnection middle platform service detects a change in the interaction state of a device, including the following steps S1201-S1208.

[0445] Step S1201: The fusion interconnection middle platform service maintains the detected interaction status between each electronic device and the first electronic device in real time.

[0446] The interaction status between the electronic device and the first electronic device includes detected unconnected, connected, offline and the like.

[0447] If the electronic device and the first electronic device are in a detected but unconnected state, it means that the first electronic device has detected the electronic device but has not established a communication channel with the electronic device.

[0448] If the electronic device and the first electronic device are in a connected state, it means that the first electronic device has established a communication channel with the electronic device.

[0449] If the electronic device and the first electronic device are in an offline state, it means that the first electronic device has detected the electronic device before, but has not detected the electronic device at this time. For example, the electronic device is turned off, the electronic device is far away from the device usage environment of the first electronic device, or the electronic device is in flight mode or offline mode, etc., so that the first electronic device cannot detect the electronic device.

[0450] Specifically, the fusion interconnection middle station service can detect in real time the electronic devices in the use environment of the first electronic device, and detect the electronic devices that have a communication channel with the first electronic device, so that the detected electronic devices that are not connected and connected can be determined according to the detection results. In addition, the fusion interconnection middle station service can compare the electronic devices detected in real time with the electronic devices detected last time, so as to determine the newly added electronic devices and the offline electronic devices.

[0451] Step S1202: If the fusion interconnection middle platform service detects that the interaction state of the user's smart screen has changed, it can generate state change information indicating that the interaction state of the user's smart screen is the changed interaction state.

[0452] For example, the state change information may include information representing the interaction state after the change. In addition, the state change information may also include information representing the interaction state before the change.

[0453] For example, if the fusion interconnection middle platform service detects that the interaction state of the user's smart screen changes from a detected unconnected state to a connected state, it can generate state change information indicating that the interaction state of the user's smart screen is a connected state.

[0454] Step S1203: The fusion interconnection middle platform service sends status change information to the data middle platform service.

[0455] Step S1204: The data middle platform service generates device list change callback information indicating that the interaction state of the user's smart screen is the changed interaction state based on the state change information.

[0456] Step S1205: The data middle platform service sends a device list change callback message to the gallery resource manager.

[0457] Step S1206: The gallery resource manager obtains change information representing the interaction status of the user's smart screen after the change from the device list change callback information.

[0458] Step S1207: the gallery resource manager sends change information to the gallery.

[0459] Step S1208: The gallery adjusts the interaction status of the user's smart screen maintained in the stored device list to the changed interaction status based on the change information.

[0460] For example, if the interaction status of the user's smart screen changes from a detected unconnected state to a connected state, the interaction status of the user's smart screen originally maintained in the device list stored in the gallery is an unconnected state. After the gallery obtains the change information, the status of the user's smart screen maintained in the device list can be modified to a connected state.

[0461] In addition, if the interaction status of the user's smart screen changes to offline, the gallery can adjust the device list to no longer display the device logo of the user's smart screen.

[0462] In a specific implementation, the present application also provides a terminal, which includes one or more processors and a memory; the memory is coupled to the one or more processors, 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 to enable the terminal to execute some or all of the steps in the above method embodiments.

[0463] The present application also provides a computer-readable storage medium, including a computer program, which, when executed on a terminal, enables the terminal to execute some or all of the steps in the above method embodiment. The above storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0464] In a specific implementation, an embodiment of the present application further provides a computer program product, which includes executable instructions. When the executable instructions are executed on a terminal, the terminal executes some or all of the steps in the above method embodiment.

[0465] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0466] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0467] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0468] In some cases, the disclosed embodiments can be implemented in hardware, firmware, software or any combination thereof. The disclosed embodiments can also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which can be read and executed by one or more processors. For example, instructions can be distributed over a network or through other computer-readable media. Therefore, machine-readable media can include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including but not limited to, floppy disks, optical disks, optical disks, compact disc read-only memories (Compact Disc Read Only Memory, CD-ROMs), magneto-optical disks, read-only memories, random access memories, erasable programmable read-only memories (Erasable Programmable Read Only Memory, EPROM), electrically erasable programmable read-only memories (Electrically Erasable Programmable Read Only Memory, EEPROM), magnetic cards or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) using the Internet in electrical, optical, acoustic or other forms of propagation signals. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

[0469] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the accompanying drawings of the specification. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0470] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0471] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0472] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims

1. A resource access method, characterized in that: Applied to a first electronic device, the method includes: When the gallery is in the foreground running state and the second electronic device and the third electronic device are detected, the device identification of the second electronic device and the device identification of the third electronic device are displayed on the interface of the gallery, and a first communication channel has been established between the first electronic device and the second electronic device; Based on the first communication channel, first resource information of a gallery resource in the second electronic device is loaded, and the first resource information of the loaded source is displayed on a first interface of the gallery; While maintaining the first communication channel between the first electronic device and the second electronic device, establishing a second communication channel between the first electronic device and the third electronic device; Based on the second communication channel, second resource information of the gallery resource in the third electronic device is loaded, and the loaded second resource information is displayed on the second interface of the gallery.

2. The method according to claim 1, characterized in that Before establishing the second communication channel between the first electronic device and the third electronic device, the method further includes: Determine whether the number of communication channels established by the first electronic device is less than a maximum number of channels for establishing communication channels by the first electronic device, wherein the maximum number of channels is an integer greater than 1; The establishing a second communication channel between the first electronic device and the third electronic device includes: If the number of communication channels established by the first electronic device is less than the maximum number of communication channels established by the first electronic device, a second communication channel is established between the first electronic device and the third electronic device.

3. The method according to claim 2, characterized in that The method further comprises: If the number of communication channels established by the first electronic device is equal to the maximum number of channels, disconnecting one of the communication channels established by the first electronic device; The establishing a second communication channel between the first electronic device and the third electronic device includes: After disconnecting one of the communication channels established by the first electronic device, a second communication channel is established between the first electronic device and the third electronic device.

4. The method according to claim 3, characterized in that: The disconnecting one of the communication channels established by the first electronic device comprises: Displaying channel prompt information on a third interface of the gallery, wherein the channel prompt information includes: a device identification of the second electronic device; In response to a user's operation on a device identifier in the channel prompt information, a communication channel between the first electronic device and the electronic device indicated by the device identifier operated by the user is disconnected.

5. The method according to claim 1, characterized in that The establishing a second communication channel between the first electronic device and the third electronic device includes: Detecting whether a communication channel has been established between the first electronic device and the third electronic device; If not, a second communication channel is established between the first electronic device and the third electronic device.

6. The method according to claim 1, characterized in that The establishing a second communication channel between the first electronic device and the third electronic device includes: In response to a user's operation on the device identification of the third electronic device, a second communication channel is established between the first electronic device and the third electronic device.

7. The method according to any one of claims 1 to 6, characterized in that The displaying of the device identification of the second electronic device and the device identification of the third electronic device on the interface of the gallery includes: Displaying the device identification of the second electronic device and the device identification of the third electronic device on the interface of the gallery according to the order in which the electronic devices are arranged; or According to the time when the electronic device is detected, the device identification of the second electronic device and the device identification of the third electronic device are displayed on the interface of the gallery.

8. The method according to any one of claims 1 to 6, characterized in that The method further comprises: If a new electronic device is detected and there is insufficient space in the device identification display area on the interface of the gallery, the device identification of the new electronic device is displayed in a hidden manner, and a new electronic device prompt message is displayed on the interface of the gallery.

9. The method according to any one of claims 1 to 6, characterized in that: The step of loading the second resource information of the gallery resource in the third electronic device based on the second communication channel, and displaying the loaded second resource information on the second interface of the gallery, comprises: Based on the second communication channel, loading the second resource information of the gallery resource in the third electronic device, and displaying the resource loading animation on the fourth interface of the gallery during the loading of the second resource information; After the second resource information is successfully loaded, the second resource information is displayed on the second interface of the gallery; After the loading of the second resource information fails, the failure information is displayed on the fifth interface of the gallery.

10. The method according to any one of claims 1 to 6, characterized in that: The step of loading the second resource information of the gallery resource in the third electronic device based on the second communication channel includes: Based on the second communication channel, second resource information of the gallery resource that has been authorized for access by the first electronic device is loaded into the third electronic device.

11. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to the gallery resource saving instruction, creating an album in the gallery based on a preset source character and a device identification of the third electronic device; The gallery resource is saved in the created album.

12. The method according to claim 1, characterized in that The first electronic device includes a gallery and a fusion interconnection middle platform service, and when the gallery is in a foreground running state and a second electronic device and a third electronic device are detected, a device identification of the second electronic device and a device identification of the third electronic device are displayed on an interface of the gallery, including: When the gallery is in the foreground running state and the fusion interconnection middle platform service detects the second electronic device and the third electronic device, the fusion interconnection middle platform service sends the device identification of the second electronic device and the device identification of the third electronic device to the gallery; In response to receiving the device identification of the second electronic device and the device identification of the third electronic device, the gallery displays the device identification of the second electronic device and the device identification of the third electronic device in an interface.

13. The method according to claim 12, characterized in that The step of loading first resource information of a gallery resource in the second electronic device based on the first communication channel, and displaying the loaded first resource information on a first interface of the gallery, comprises: The fusion interconnection middle platform service loads the first resource information of the gallery resource in the second electronic device based on the first communication channel, and sends the first resource information to the gallery; In response to receiving the first resource information, the gallery displays the first resource information on a first interface.

14. The method according to claim 12, characterized in that The step of loading the second resource information of the gallery resource in the third electronic device based on the second communication channel, and displaying the loaded second resource information on the second interface of the gallery, comprises: The fusion interconnection middle platform service loads the second resource information of the gallery resource in the third electronic device based on the second communication channel, and sends the second resource information to the gallery; In response to receiving the second resource information, the gallery displays the second resource information in a second interface.

15. The method according to claim 12, characterized in that Before establishing the second communication channel between the first electronic device and the third electronic device, the method further includes: The fusion interconnection middle station service determines whether the number of communication channels established by the first electronic device is less than the maximum number of channels for establishing communication channels by the first electronic device, wherein the maximum number of channels is an integer greater than 1; If the fusion interconnection middle platform service determines that the number of communication channels established by the first electronic device is equal to the maximum number of channels, it sends a channel disconnection request to the gallery; The gallery displays channel disconnection prompt information in a third interface of the gallery in response to the channel disconnection request, wherein the channel disconnection prompt information includes: a device identification of the second electronic device; The gallery determines the target device identifier of the device to be disconnected selected by the user in response to the user's operation on the device identifier in the channel disconnection prompt information, and sends the target device identifier to the fusion interconnection middle platform service; The fusion interconnection middle station service disconnects the communication channel between the first electronic device and the device to be disconnected based on the target device identifier.

16. The method according to claim 12, characterized in that The establishing a second communication channel between the first electronic device and the third electronic device includes: The gallery sends a resource acquisition request including the device identification of the third electronic device to the converged interconnection middle platform service in response to the user's operation on the device identification of the third electronic device; In response to receiving the resource acquisition request, the converged interconnection middle platform service establishes a second communication channel between the first electronic device and the third electronic device.

17. A terminal, characterized in that: The method comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the terminal is triggered to execute the method according to any one of claims 1 to 16.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 16.

Citation Information

Patent Citations

  • Resource management method and apparatus

    CN104038511A

  • Cross-device resource access method and device, storage medium and electronic device

    CN113347242A

  • Equipment communication connection establishment method and equipment communication system

    CN114173321A

  • Data sharing method, electronic equipment and system

    CN114329020A

  • Resource information sharing method, electronic equipment and computer storage medium

    CN114547100A