Cross-application picture display method, device, storage medium and terminal

By reading the picture descriptor of the IoT device on the terminal and displaying it in the device center application, the problem of inconvenient display of device images in IoT device management is solved, and the intuitive display and management of device images is realized, which improves the user experience.

CN113760833BActive Publication Date: 2025-01-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111078431.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2025-01-14
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

In IoT device management, it is difficult for the prior art to visually display the device pictures connected to the device in the device center application. Users need to enter each device application to view the appearance of the device, resulting in inconvenience in management.

Method used

By implementing a cross-application image display method on the terminal, the image descriptor of the target device is read and displayed in the device center application, the image name is generated and written to the file directory, and the display and classification of device images are realized.

Benefits of technology

Users can view the device pictures of connected devices in the device center application without entering the device application, which improves the user experience and classifies them through image descriptors, simplifying the management and positioning of device images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113760833B_ABST
    Figure CN113760833B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, storage medium and terminal for displaying images across applications. The method is applied to a terminal. A device center application is used to manage multiple device applications. Each device application is used to manage devices connected to the terminal. The method includes: reading a target image corresponding to a target device from a file directory of the target device application, parsing the target image and the device information of the target device to obtain an image descriptor corresponding to the target image, generating an image name based on the image descriptor, naming the target image with the image name and writing it to the file directory of the device center application, and displaying the target image in the device center application. By using the present application, device images of various devices connected to the terminal can be displayed on the display page of the device center application used to manage various devices connected to the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal application technology, and in particular to a cross-application picture display method, device, storage medium and terminal. Background Art

[0002] The Internet of Things refers to objects that are connected by installing various information sensing devices, such as radio frequency identification (RFID) devices, infrared sensors, global positioning systems, laser scanners or other means, and then combined with the Internet or mobile communication networks to eventually form a huge intelligent network, which enables intelligent management of objects through terminals such as computers or mobile phones.

[0003] With the development of the Internet of Things, the number of IoT devices connected and managed by mobile phones, computers and other terminals is also increasing. Generally, for different categories of IoT devices, a device application specifically used to manage the devices of that category will be set up on the mobile phone or computer. When connecting multiple IoT devices, a device center application will be set up for the convenience of management. The device center application is used to manage each device application. Summary of the invention

[0004] The embodiment of the present application provides a method, device, storage medium and terminal for displaying cross-application images, which are applied to the terminal and can display device images of each device connected to the terminal on the display page of the device center application for managing each device connected to the terminal. The technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a cross-application picture display method, characterized in that it is applied to a terminal, the terminal includes a device center application, the device center application is used to manage multiple device applications, each of the device applications is used to control a device connected to the terminal, and the method includes:

[0006] Reading a target image corresponding to the target device from a file directory of the target device application, parsing the target image and device information of the target device to obtain an image descriptor corresponding to the target image;

[0007] Generate a picture name based on the picture descriptor, name the target picture with the picture name and write it into the file directory of the device center application;

[0008] The target image is displayed in the device center application.

[0009] In a second aspect, an embodiment of the present application provides a cross-application picture display device, the cross-application picture display device comprising:

[0010] An image reading module is used to read a target image corresponding to a target device from a file directory of a target device application, parse the target image and device information of the target device, and obtain an image descriptor corresponding to the target image;

[0011] A picture transfer module, used to generate a picture name based on the picture descriptor, name the target picture with the picture name and write it into the file directory of the device center application;

[0012] A picture display module is used to display the target picture in the device center application.

[0013] In a third aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores at least one instruction, and the at least one instruction is suitable for being loaded by a processor and executing the above-mentioned method steps.

[0014] In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores at least one instruction, and the at least one instruction is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0015] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0016] By adopting the cross-application image display method provided in the embodiment of the present application, the target image corresponding to the target device is first read from the file directory of the target device application, and the target image is parsed to obtain the image descriptor corresponding to the target image, and a picture name is generated based on the picture descriptor, and the target image is named with the picture name and written into the file directory of the device center application, and finally the target image is displayed in the device center application, so that the device images of each device connected to the terminal are displayed on the display page of the device center application for managing each device connected to the terminal. The user does not need to enter the device application to view the device images of each device connected to the terminal in the display interface of the device center application, thereby improving the user experience; and in the process of saving the target image, an image descriptor is added to the target image, the image is named with the image descriptor, and the target image is classified, so as to facilitate the search and positioning of the target image when it is used again in the future and the management of device image resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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 work.

[0018] Figure 1 A system architecture diagram of a cross-application image display method is provided for an embodiment of the present application;

[0019] Figure 2 A schematic diagram of a cross-application image display method is provided for an embodiment of the present application;

[0020] Figure 3 An example schematic diagram of displaying a target image in a device center application is provided for an embodiment of the present application;

[0021] Figure 4 A schematic diagram of a cross-application image display method is provided for an embodiment of the present application;

[0022] Figure 5 A schematic diagram of a cross-application image display method is provided for an embodiment of the present application;

[0023] Figure 6 A schematic diagram of the structure of a cross-application picture display device is provided for an embodiment of the present application;

[0024] Figure 7 A schematic diagram of the structure of a cross-application picture display device is provided for an embodiment of the present application;

[0025] Figure 8 A schematic diagram of the structure of a terminal is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.

[0028] When managing the devices connected to the terminal on the terminal, it is necessary to use the device applications corresponding to the devices on the terminal to achieve this. When there are many devices connected to the terminal, the number of device applications on the terminal will also increase, which is inconvenient to manage. In the prior art, to address this phenomenon, a device center application is usually set up in the terminal. The device center application is used as a management platform for device applications to manage various device applications, and each device application will be displayed on the display interface of the device center application.

[0029] Usually, the device center application only displays the default icon of each device application, and cannot intuitively display the device images of the devices managed by each device application. Users cannot directly see the device appearance of the device connected to the terminal in the application interface of the device center application. They need to enter the corresponding device application to view the device appearance of the connected device, which brings inconvenience to users.

[0030] The present application proposes a cross-application image display method, which can display device images of various devices connected to a terminal on a display page of a device center application for managing various devices connected to the terminal.

[0031] In order to more clearly describe the technical solution of the embodiment of the present invention, some concepts in the present invention are described in detail before the description to facilitate a better understanding of the solution.

[0032] Uniform Resource Identifier (URI): Every resource available on the Web, such as HTML documents, images, video clips, programs, etc., is located by a universal resource identifier.

[0033] Image descriptor: used to locate the target image for the query, such as the file format of the image, the content features of the image, the image version number, etc.

[0034] Input stream: read bytes from the file and read the data in the hard disk file into the memory for use.

[0035] See also Figure 1 , which provides a system architecture diagram of a cross-application image display method for an embodiment of the present application.

[0036] like Figure 1 As shown, the system architecture may include a terminal 100, a device cloud 101, a device 102, and a device center application 1001 and a device application 1002 set in the terminal 100. Among them, the terminal 100 can be various electronic devices, including but not limited to smart watches, smart phones, tablet computers, laptop portable computers and desktop computers, etc. The device 102 can be various IoT devices, including but not limited to refrigerators, washing machines, air conditioners, televisions, headphones, etc. The device cloud 101 refers to a server that stores detailed device information of each device. Developers can perform system upgrades or software updates for each device through the device cloud. The device center application 1001 is used to manage each device application 1002 and provide a channel to open the device application 1002. The device application 1002 is used to manage each device 102 connected to the terminal.

[0037] It should be understood that Figure 1 The number of device clouds, devices, and device applications set in the terminal is only illustrative, and can be any number of device clouds, devices, and device applications set in the terminal according to implementation requirements.

[0038] The following is a detailed description in conjunction with specific embodiments. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily follow the steps shown. For example, some steps are parallel and do not have a strict logical order, so the actual execution order is variable.

[0039] Combination Figure 1 For the system architecture diagram shown in Figure 2 , which is a flow chart of a method for displaying images across applications provided in the present application. The present application embodiment takes the method applied to a terminal as an example for explanation. Figure 2 As shown, the cross-application picture display method may include the following steps S101 to S103.

[0040] S101, reading a target image corresponding to a target device from a file directory of a target device application, parsing the target image and device information of the target device, and obtaining an image descriptor corresponding to the target image;

[0041] The target device may refer to a device connected to the terminal, and the target device application refers to an application for controlling the target device. For example, if the target device is a headset, the target device application is an application for controlling the headset, and the headset can be controlled by the target application, such as volume adjustment and sound effect mode switching. For another example, if the target device is a refrigerator, the target device application is a refrigerator application for controlling the refrigerator, and the refrigerator can be controlled by the refrigerator application, such as temperature adjustment and freezing mode switching.

[0042] It is worth mentioning that each target device application controls more than one target device. For example, if the target device application is a refrigerator application that controls a refrigerator, when there is more than one refrigerator connected to the terminal, the refrigerator application can control multiple refrigerators connected to the terminal separately.

[0043] Specifically, a target image corresponding to the target device is read from a file directory of the target device application, and then the target image and device information of the target device are parsed to obtain an image descriptor corresponding to the target image.

[0044] Optionally, before reading the target image corresponding to the target device connected to the terminal in the file directory of the target device application, in a possible specific implementation scenario, after the target device is connected to the terminal, the target device application corresponding to the target device in the terminal will obtain the device information of the target device, where the device information may be the device model of the target device or other device identifier that can represent the target device. The target device application will then download the device image of the target device from the device cloud of the target device according to the device information of the target device to the file directory corresponding to the target device application.

[0045] Optionally, the target device application may download multiple device images from the device cloud, and then any device image is read from the device images as the target image corresponding to the target device.

[0046] It should be understood that the target image is one of the multiple device images of the target device.

[0047] Optionally, the method of reading the target image corresponding to the target device from the file directory of the target device application may be reading the target image corresponding to the target device through package management.

[0048] Optionally, the method of reading the target image corresponding to the target device from the file directory of the target device application can be to provide the universal resource identifier (URI) of the target image through a file provider, and then locate the position of the target image based on the universal resource identifier and read the target image.

[0049] Optionally, the target image corresponding to the target device is read from the file directory of the target device application by selecting an appropriate method according to the number of devices currently connected to the terminal. In a feasible implementation, if the number of devices is less than the device number threshold, the input stream of the target image is obtained from the file directory of the target device application through package management; if the number of devices is greater than or equal to the device number threshold, the universal resource identifier of the target image in the device application of the target device is obtained through the file provider, and the input stream of the target image is obtained from the file directory of the target device application through the content provider based on the universal resource identifier. Among them, the devices connected to the terminal include devices that are in a connected state and devices that have been connected before.

[0050] Optionally, the image descriptor includes at least one of a device model, a device color, a device brand, an image type, a display type, a version number, and an image suffix.

[0051] For example, each image descriptor can be defined as:

[0052] modelId String colorId String brand String imageType DeviceImageType displayType ImageDisplayType shortcutId String = "0" version Long=0L suffix String = ".png"

[0053] modelId is the device model, colorId is the device color, brand is the device brand, imageType is the image type, displayType is the display type, shortcutId is the shortcut path descriptor, version is the version number, and suffix is ​​the image suffix.

[0054] It should be understood that the contents of the image descriptor defined according to the device images of different target devices are different, and the definitions of the image descriptors of the device images of different target devices are unique.

[0055] S102, generating a picture name based on the picture descriptor, naming the target picture with the picture name and writing it into the file directory of the device center application;

[0056] The image descriptor is used to locate the target image to be queried.

[0057] It can be understood that after the target device application corresponding to the target device downloads the device image of the target device to the file directory corresponding to the target device application in the device cloud of the target device, the device center application will read the target image corresponding to the target device from the file directory of the target device application, parse the target image, obtain the image descriptor corresponding to the target image, and then generate an image name according to the image descriptor, and save the target image in the file directory of the device center application based on the image name generated by the image descriptor.

[0058] The image descriptor may include device model, device color, device brand, image type, display type, version number, image suffix, etc., and the image name may be defined with all the image descriptors.

[0059] Optionally, when the target image is named with the image name and written into the file directory of the device center application, a new target folder can also be created in the file directory of the device center application, a folder name is generated based on the image descriptor, and the target image is saved with the image name in a folder named with the folder name.

[0060] The folder name may be defined by image descriptors such as device model, device color, device brand, etc.

[0061] For example, the folder name format can be: / modelId-colorId-brand / . modelId is the device model, colorId is the device color, and brand is the device brand. The image name format can be: modelId-colorId-brand_imageType_displayType_version_suffix. imageType is the image type, displayType is the display type, version is the version number, and suffix is ​​the image suffix.

[0062] S103, displaying the target image in the device center application.

[0063] Specifically, when the target device establishes a connection with the terminal for the first time, the target image is displayed in the UI process corresponding to the device center application; when the target device does not establish a connection with the terminal for the first time, the image descriptor is obtained based on the device information of the target device, the target image is located in the file directory of the device center application based on the image descriptor, and the target image is displayed in the UI process corresponding to the device center application.

[0064] It can be understood that when the target device is not connected to the terminal for the first time, since the target image of the target device has been stored in the device center application, the image descriptor is obtained based on the device information of the target device, the target image is located from the file directory of the device center application based on the image descriptor, and the target image is displayed in the UI process corresponding to the device center application. The device information of the target device includes device model, device color, device brand and other information features that are the same as the image descriptor. By parsing the device information of the target device, an image descriptor including information such as device model, device color, device brand, etc. can be obtained, the target image is located from the file directory of the device center application based on the image descriptor, and displayed in the device center application.

[0065] It should be understood that the target device establishes a connection with the terminal for the first time and the target device does not establish a connection with the terminal for the first time, the target device does not only refer to one device, it can generally refer to multiple devices of the same model and appearance, for example: device 1, device 2 and device 3 are three devices of the same model and appearance, and there is terminal 0. At the initial moment, device 1, device 2 and device 3 have never been connected to terminal 0. When device 2 establishes a connection with the terminal for the first time, the device application corresponding to device 2 in the terminal will download the device image of device 2 from the device cloud and save it in the file directory of the device application, and then read one of the device images from the file directory of the device application as the target image and save it in the file directory of the device center application, and display the target image in the device center application. At this time, if device 1 or device 3 establishes a connection with the terminal, since device 1, device 2 and device 3 are devices of the same model and appearance, the device images of device 1, device 2 and device 3 are the same. At this time, since a device image of device 2 has been saved as a target image in the file directory of the device center application, when device 1 or device 3 establishes a connection with the terminal, the same target image as device 2 can be directly used. There is no need to execute the steps of downloading the device image from the device cloud according to the device information and transferring the device image from the file directory of the device application to the file directory of the device center application, which reduces the amount of calculation. Several devices of the same model and appearance share one target image, saving storage space and thus reducing waste of resources.

[0066] In a possible implementation, the locating the target image from the file directory of the device center application based on the image descriptor may be locating a folder related to the image descriptor in the file directory of the device center application based on the image descriptor obtained from device information of the target device, the folder name of the folder including the image descriptor, and the target image is stored in the folder.

[0067] In a possible implementation, the locating the target image from the file directory of the device center application based on the image descriptor may be directly locating the target image in the file directory of the device center application based on the image descriptor obtained from device information of the target device, and the image name of the target image includes the image descriptor.

[0068] Please also see Figure 3 , provides an example schematic diagram of displaying a target image in a device center application for an embodiment of the present application.

[0069] like Figure 3 As shown, the device center application shows multiple device applications, including connected device applications and unconnected device applications, and a device image of a target device is displayed in a display area of ​​each device application.

[0070] By adopting the cross-application image display method provided in the embodiment of the present application, the target image corresponding to the target device is first read from the file directory of the target device application, and the target image is parsed to obtain the image descriptor corresponding to the target image, and a picture name is generated based on the picture descriptor, and the target image is named with the picture name and written into the file directory of the device center application, and finally the target image is displayed in the device center application, so that the device images of each device connected to the terminal are displayed on the display page of the device center application for managing each device connected to the terminal. The user does not need to enter the device application to view the device images of each device connected to the terminal in the display interface of the device center application, thereby improving the user experience; and in the process of saving the target image, an image descriptor is added to the target image, the image is named with the image descriptor, and the target image is classified, so as to facilitate the search and positioning of the target image when it is used again in the future and the management of device image resources.

[0071] See also Figure 4 , which is a flow chart of a method for displaying images across applications provided in the present application. The execution subject of the present application embodiment is a terminal. Figure 4 As shown, the cross-application picture display method may include the following steps.

[0072] S201, obtaining device information of a target device;

[0073] When the target device is connected to the terminal, the terminal will obtain the device information of the target device, which may include: device model, device brand, etc.

[0074] S202, downloading a device image corresponding to the target device from the cloud to a file directory of the target device application based on the device information;

[0075] Specifically, based on the device information of the target device, a device image corresponding to the target device is downloaded from the device cloud of the target device and saved in a file directory of the target device application.

[0076] The device image corresponding to the target device is uploaded to the device cloud by the developer, and the device image corresponding to the target device may include one or more.

[0077] S203, reading a target image corresponding to the target device from a file directory of the target device application, parsing the target image and device information of the target device, and obtaining an image descriptor corresponding to the target image;

[0078] Optionally, when there are multiple device images corresponding to the target device, and when the device images of the target device stored in the file directory of the target device application include multiple device images, one of the device images is selected as the target image corresponding to the target device.

[0079] It should be understood that the target image is one of the multiple device images of the target device.

[0080] S204, generating a picture name based on the picture descriptor, naming the target picture with the picture name and writing it into the file directory of the device center application;

[0081] S205, when the target device establishes a connection with the terminal for the first time, displaying the target image in the device center application;

[0082] S206, when the target device is not establishing a connection with the terminal for the first time, obtaining the image descriptor based on the device information of the target device, locating the target image from the file directory of the device center application based on the image descriptor, and displaying the target image in the device center application.

[0083] It is understandable that after the target device is connected to the terminal for the first time and then disconnected, the device image of the target device has been stored in the file directory of the device center application in the terminal. When the target device is connected to the terminal again, since the target image corresponding to the target device has been stored in the file directory of the device center application, the image descriptor is directly obtained based on the device information of the target device, the target image is located from the file directory of the device center application based on the image descriptor, and displayed in the device center application.

[0084] It should be understood that in the embodiments of the present application, the target device is not limited to one device, but generally refers to devices of the same model and appearance. For example, earphone device 1, earphone device 2, earphone device 3, earphone device 4 and earphone device 5, when earphone device 1 is connected to the terminal for the first time, the device image of earphone device 1 will be saved in the file directory of the device center application in the terminal, and the device image saved in the file directory of the device center application is the target image. After that, when earphone devices 2, earphone devices 3, earphone devices 4 and earphone devices 5 of the same model and appearance as earphone device 1 establish a connection with the terminal, the image descriptor of the target image is obtained based on the device information of earphone devices 2, earphone devices 3, earphone devices 4 and earphone devices 5, and the target image is directly located from the file directory of the device center application according to the image descriptor, and displayed in the device center application, without executing the steps of downloading the device image in the device cloud according to the device information and transferring the device image from the file directory of the device application to the file directory of the device center application, which reduces the amount of calculation, and several devices of the same model and appearance share one target image, saving storage space and reducing the waste of resources.

[0085] In an embodiment of the present application, the device information of the target device is first obtained, and then the device image corresponding to the target device is downloaded from the cloud to the file directory of the target device application based on the device information, the target image corresponding to the target device is read from the file directory of the target device application, the target image and the device information of the target device are parsed to obtain the image descriptor corresponding to the target image, and a picture name is generated based on the picture descriptor, the target image is named with the picture name and written to the file directory of the device center application, and finally the target image is displayed in the device center application, so that the device images of each device connected to the terminal are displayed on the display page of the device center application for managing each device connected to the terminal, and the user can view each device in the display interface of the device center application without entering the device application. The device images of each device connected to the terminal improve the user experience; and in the process of saving the target image, an image descriptor is added to the target image, the image is named with the image descriptor, and the target image is classified. When the target device is not connected to the terminal for the first time, there is no need to execute the steps of reading the target image from the file directory of the target device application and storing it in the file directory of the device center application. The target image can be read by directly searching and locating it in the file directory of the device center application according to the image descriptor, and the target image can be displayed in the device center application, which reduces the amount of calculation and saves storage space. No matter how many device images of the target device are downloaded from the cloud, only one of them is read and saved in the file directory of the device center application, and only one is displayed in the device center application, which saves disk storage space and memory space.

[0086] After displaying the target image in the Device Center application, if the developer upgrades the device system or function of the target device, the device model and / or version number of the target device may change. For this purpose, please refer to Figure 5 , is a flowchart of a cross-application picture display method provided in another exemplary embodiment of the present application. Figure 5 As shown, the cross-application picture display method may include the following steps.

[0087] S301, obtaining device information of a target device;

[0088] S302, determining whether the device model and / or version number of the target device has changed;

[0089] Specifically, it may be determined whether the device model and / or version number of the target device has changed according to the device information of the target device connected to the terminal;

[0090] S303, if the device model and / or version number of the target device changes, read a target image corresponding to the target device from a file directory of the target device application, parse the target image and device information of the target device, and obtain an image descriptor corresponding to the target image;

[0091] It is understandable that if the device model and / or version number of the target device changes, the device image of the target device currently displayed in the device center application needs to be updated, that is, it is necessary to re-read the new target image corresponding to the target device from the file directory of the target device application, and replace the original device image of the target device displayed in the device center application with the new target image, and then display the new target image in the device center application.

[0092] S304, generating a picture name based on the picture descriptor, naming the target picture with the picture name and writing it into the file directory of the device center application;

[0093] S305: Display the target image in the device center application.

[0094] In an embodiment of the present application, after a target device has been connected to a terminal and a device image of the target device has been displayed in a device center application, if the device model and / or version number of the target device has changed, the display of the device image of the target device is updated accordingly in the device center application, thereby ensuring that the latest version of the device image of the target device is always displayed in the device center application, ensuring that the user can always view the latest version of the device image, thereby improving the user experience.

[0095] See also Figure 6, which is a schematic diagram of the structure of a cross-application picture display device provided in an embodiment of the present application. Figure 6 As shown, the cross-application picture display device 1 can be implemented as all or part of the terminal through software, hardware or a combination of both. According to some embodiments, the cross-application picture display device 1 includes a picture reading module 11, a picture transfer module 12, and a picture display module 13, specifically including:

[0096] The image reading module 11 is used to read a target image corresponding to a target device from a file directory of a target device application, parse the target image and device information of the target device, and obtain an image descriptor corresponding to the target image;

[0097] The image transfer module 12 is used to generate an image name based on the image descriptor, name the target image with the image name, and write it into the file directory of the device center application;

[0098] The picture display module 13 is used to display the target picture in the device center application.

[0099] Optionally, the picture display module 13 is specifically used for:

[0100] When the target device establishes a connection with the terminal for the first time, displaying the target image in the device center application;

[0101] When the target device is not establishing a connection with the terminal for the first time, the image descriptor is obtained based on the device information of the target device, the target image is located from the file directory of the device center application based on the image descriptor, and the target image is displayed in the device center application.

[0102] Optional, see Figure 7 , which is a schematic diagram of the structure of a cross-application picture display device provided in an embodiment of the present application. Figure 7 As shown, the device also includes:

[0103] An information acquisition module 14 is used to acquire device information of a target device;

[0104] The image download module 15 is used to download the device image corresponding to the target device from the cloud to the file directory of the target device application based on the device information.

[0105] Optional, Figure 7 As shown, the device also includes:

[0106] An update determination module 16 is used to determine whether the device model and / or version number of the target device has changed;

[0107] The image update module 17 is used to execute the steps of reading the target image corresponding to the target device from the file directory of the target device application, parsing the target image and the device information of the target device, and obtaining the image descriptor corresponding to the target image if the device model and / or version number of the target device changes.

[0108] Optionally, the picture reading module 11 is specifically used for:

[0109] Obtain the number of devices currently connected to the terminal;

[0110] If the number of devices is less than the device number threshold, obtaining an input stream of the target image from a file directory of the target device application through package management;

[0111] If the number of devices is greater than or equal to the device number threshold, the universal resource identifier of the target image in the device application of the target device is obtained through the file provider, and based on the universal resource identifier, the input stream of the target image is obtained from the file directory of the target device application through the content provider.

[0112] Optionally, in the device, the image descriptor includes at least one of a device model, a device color, a device brand, a picture type, a display type, a version number, and a picture suffix.

[0113] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0114] In an embodiment of the present application, the device information of the target device is first obtained, and then the device image corresponding to the target device is downloaded from the cloud to the file directory of the target device application based on the device information, the target image corresponding to the target device is read from the file directory of the target device application, the target image and the device information of the target device are parsed to obtain the image descriptor corresponding to the target image, and a picture name is generated based on the picture descriptor, the target picture is named with the picture name and written to the file directory of the device center application, and finally the target picture is displayed in the device center application, so that the device images of each device connected to the terminal are displayed on the display page of the device center application for managing each device connected to the terminal, and the user can view the device images of each device connected to the terminal in the display interface of the device center application without entering the device application. The user experience is improved; and in the process of saving the target image, an image descriptor is added to the target image, the image is named with the image descriptor, and the target image is classified. When the target device is not connected to the terminal for the first time, there is no need to execute the steps of reading the target image from the file directory of the target device application and storing it in the file directory of the device center application. The target image can be read by directly searching and locating according to the image descriptor in the file directory of the device center application, and the target image can be displayed in the device center application, which reduces the amount of calculation and saves storage space; when the device model and / or version number of the target device changes, the display of the device image of the target device is updated in the device center application accordingly, ensuring that the latest version of the device image of the target device is always displayed in the device center application, ensuring that the user can always view the latest version of the device image, and improving the user experience.

[0115] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1 to Figure 5 The cross-application image display method of the embodiment shown in the figure can be specifically executed by referring to Figure 1 to Figure 5 The specific description of the illustrated embodiment will not be repeated here.

[0116] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1 to Figure 5 The cross-application image display method of the embodiment shown in the figure can be specifically executed by referring to Figure 1 to Figure 5 The specific description of the illustrated embodiment will not be repeated here.

[0117] Please refer to Figure 8, which shows a block diagram of a terminal provided by an exemplary embodiment of the present application. The terminal in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via a bus 150.

[0118] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0119] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets.

[0120] The input device 130 is used to receive input instructions or data, and the input device 130 includes but is not limited to a keyboard, a mouse, a camera, a microphone or a touch device. The output device 140 is used to output instructions or data, and the output device 140 includes but is not limited to a display device and a speaker. In the embodiment of the present application, the input device 130 can be a temperature sensor for obtaining the operating temperature of the terminal. The output device 140 can be a speaker for outputting audio signals.

[0121] In addition, those skilled in the art will appreciate that the structure of the terminal shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module, and other components, which will not be described in detail here.

[0122] In the embodiment of the present application, the execution subject of each step may be the terminal described above. Optionally, the execution subject of each step is the operating system of the terminal. The operating system may be an Android system, an IOS system, or other operating systems, which is not limited in the embodiment of the present application.

[0123] exist Figure 6 In the terminal shown, the processor 110 can be used to call the audio signal processing program stored in the memory 120 and execute it to implement the cross-application picture display method as described in the various method embodiments of the present application.

[0124] The cross-application image display method provided in the embodiment of the present application is adopted to first obtain the device information of the target device, then download the device image corresponding to the target device from the cloud based on the device information to the file directory of the target device application, read the target image corresponding to the target device from the file directory of the target device application, parse the target image and the device information of the target device, obtain the image descriptor corresponding to the target image, generate an image name based on the image descriptor, name the target image with the image name and write it to the file directory of the device center application, and finally display the target image in the device center application, so that the device images of each device connected to the terminal are displayed on the display page of the device center application used to manage each device connected to the terminal, and the user can view each device connected to the terminal in the display interface of the device center application without entering the device application. device images, thereby improving user experience; and in the process of saving the target image, adding an image descriptor to the target image, naming the image with the image descriptor, and classifying the target image. When the target device is not connecting to the terminal for the first time, it is no longer necessary to execute the steps of reading the target image from the file directory of the target device application and storing it in the file directory of the device center application. The target image can be read by directly searching and locating according to the image descriptor in the file directory of the device center application, and the target image can be displayed in the device center application, thereby reducing the amount of calculation and saving storage space; when the device model and / or version number of the target device changes, the display of the device image of the target device is updated in the device center application accordingly, thereby ensuring that the latest version of the device image of the target device is always displayed in the device center application, ensuring that the user can always view the latest version of the device image, thereby improving user experience.

[0125] Those skilled in the art can clearly understand that the technical solution of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.

[0126] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0127] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0128] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0130] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0131] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct the relevant hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0132] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A cross-application picture display method, characterized in that: Applied to a terminal, the terminal includes a device center application, the device center application is used to manage multiple device applications, each of the device applications is used to control a device connected to the terminal, the method includes: When the target device establishes a connection with the terminal for the first time, acquiring device information of the target device; Downloading a device image corresponding to the target device from the cloud based on the device information to a file directory of the target device application; Reading the device image corresponding to the target device from the file directory based on the device information, and determining the device image as the target image of the target device; Parsing the target image and the device information to obtain an image descriptor corresponding to the target image; Generate a picture name based on the picture descriptor, name the target picture with the picture name and write it into the file directory of the device center application, wherein the picture name includes the picture descriptor; When it is not the first time that the target device establishes a connection with the terminal, acquiring the device information of the target device, and determining the image descriptor corresponding to the target device based on the device information; The target image corresponding to the target device is located from a file directory of the device center application based on the image descriptor, and the target image is displayed in the device center application.

2. The method according to claim 1, characterized in that After displaying the target image in the device center application, the method further includes: Determine whether the device model and / or version number of the target device has changed; If the device model and / or version number of the target device changes, the step of reading the target image corresponding to the target device from the file directory of the target device application, parsing the target image and the device information of the target device, and obtaining the image descriptor corresponding to the target image is executed.

3. The method according to claim 1, characterized in that The step of determining the device image as a target image of the target device includes: Obtain the number of devices currently connected to the terminal; If the number of devices is less than the device number threshold, obtaining an input stream of the target image from a file directory of the target device application through package management; If the number of devices is greater than or equal to the device number threshold, the universal resource identifier of the target image in the device application of the target device is obtained through the file provider, and based on the universal resource identifier, the input stream of the target image is obtained from the file directory of the target device application through the content provider.

4. The method according to claim 1, characterized in that: The image descriptor includes at least one of a device model, a device color, a device brand, an image type, a display type, a version number, and an image suffix.

5. A cross-application picture display device, characterized in that: The device comprises: The image reading module is used to obtain the device information of the target device when the target device establishes a connection with the terminal for the first time; download the device image corresponding to the target device from the cloud to the file directory of the target device application based on the device information; read the device image of the target device from the file directory based on the device information, and determine the device image as the target image of the target device; parse the target image and the device information to obtain the image descriptor corresponding to the target image; A picture transfer module, used to generate a picture name based on the picture descriptor, name the target picture with the picture name and write it into a file directory of a device center application, wherein the picture name includes the picture descriptor; The image display module is used to obtain the device information of the target device when it is not the first time that the target device establishes a connection with the terminal, and determine the image descriptor corresponding to the target device based on the device information; locate the target image corresponding to the target device from the file directory of the device center application based on the image descriptor, and display the target image in the device center application.

6. The device according to claim 5, characterized in that The device also includes: An update determination module is used to determine whether the device model and / or version number of the target device has changed; The image update module is used to execute the steps of reading a target image corresponding to the target device from the file directory of the target device application, parsing the target image and the device information of the target device, and obtaining an image descriptor corresponding to the target image if the device model and / or version number of the target device changes.

7. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

8. A terminal for displaying images across applications, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Smart home equipment adding method and device

    CN106953785A