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

文档序号:1937222 发布日期:2021-12-07 浏览:24次 中文

阅读说明:本技术 跨应用图片展示方法、装置、存储介质及终端 (Cross-application picture display method and device, storage medium and terminal ) 是由 凌征其 于 2021-09-14 设计创作,主要内容包括:本申请公开了一种跨应用图片展示方法、装置、存储介质及终端,方法应用于终端,设备中心应用用于管理多个设备应用,每个设备应用用于管理与终端连接的设备,方法包括:从目标设备应用的文件目录中读取与目标设备对应的目标图片,对所述目标图片以及所述目标设备的设备信息进行解析,得到所述目标图片对应的图片描述符,基于所述图片描述符生成图片名称,将所述目标图片以所述图片名称命名并写入至所述设备中心应用的文件目录中,在所述设备中心应用中展示所述目标图片。采用本申请,可以在用于管理与终端连接的各设备的设备中心应用的显示页面展示与终端连接的各设备的设备图片。(The application discloses a cross-application picture display method, a device, a storage medium and a terminal, wherein the method is applied to the terminal, a device center application is used for managing a plurality of device applications, each device application is used for managing a device connected with the terminal, and the method comprises the following steps: reading a target picture corresponding to target equipment from a file directory of the target equipment application, analyzing the target picture and equipment information of the target equipment to obtain a picture descriptor corresponding to the target picture, generating a picture name based on the picture descriptor, naming the target picture by the picture name and writing the target picture into the file directory of the equipment center application, and displaying the target picture in the equipment center application. By the method and the device, the device pictures of the devices connected with the terminal can be displayed on the display page of the device center application for managing the devices connected with the terminal.)

1. A cross-application picture display method is applied to a terminal, the terminal comprises a device center application, the device center application is used for managing a plurality of device applications, each device application is used for controlling a device connected with the terminal, and the method comprises the following steps:

reading a target picture corresponding to target equipment from a file directory applied by the target equipment, and analyzing the target picture and equipment information of the target equipment to obtain a picture descriptor corresponding to the target picture;

generating a picture name based on the picture descriptor, naming the target picture by the picture name and writing the target picture into a file directory of the equipment center application;

and displaying the target picture in the equipment center application.

2. The method of claim 1, wherein said presenting the target picture in the device centric application comprises:

when the target equipment establishes connection with the terminal for the first time, displaying the target picture in the equipment center application;

when the target device is not connected with the terminal for the first time, the picture descriptor is obtained based on the device information of the target device, the target picture is positioned from a file directory of the device center application based on the picture descriptor, and the target picture is displayed in the device center application.

3. The method according to claim 1, wherein before reading a target picture corresponding to a target device from a file directory applied by the target device, and analyzing the target picture and device information of the target device to obtain a picture descriptor corresponding to the target picture, the method further comprises:

acquiring equipment information of target equipment;

and downloading the device picture corresponding to the target device from the cloud to a file directory applied by the target device based on the device information.

4. The method of claim 1, wherein after the presenting the target picture in the device centric application, further comprising:

judging whether the equipment model and/or the version number of the target equipment are changed or not;

and if the equipment model and/or the version number of the target equipment change, executing the step of reading a target picture corresponding to the target equipment from a file directory applied by the target equipment, and analyzing the target picture and the equipment information of the target equipment to obtain a picture descriptor corresponding to the target picture.

5. The method according to claim 1, wherein reading the target picture corresponding to the target device from the file directory of the target device application comprises:

acquiring the number of devices which are connected with the terminal at present;

if the equipment number is smaller than the equipment number threshold value, acquiring an input stream of a target picture from a file directory applied by the target equipment through packet management;

if the device number is larger than or equal to the device number threshold, acquiring a universal resource identifier of a target picture in a device application of the target device through a file provider, and acquiring an input stream of the target picture from a file directory of the target device application through a content provider based on the universal resource identifier.

6. The method of claim 1, wherein the picture descriptor comprises at least one of a device model, a device color, a device brand, a picture type, a presentation type, a version number, and a picture suffix.

7. A cross-application picture presentation device, the device comprising:

the image reading module is used for reading a target image corresponding to the target equipment from a file directory applied by the target equipment, and analyzing the target image and equipment information of the target equipment to obtain an image descriptor corresponding to the target image;

the picture unloading module is used for generating a picture name based on the picture descriptor, naming the target picture by the picture name and writing the target picture into a file directory of the equipment center application;

and the picture display module is used for displaying the target picture in the equipment center application.

8. The apparatus of claim 7, further comprising:

the update judging module is used for judging whether the equipment model and/or the version number of the target equipment are changed or not;

and the picture updating module is used for reading a target picture corresponding to the target equipment from a file directory applied by the target equipment and analyzing the target picture and equipment information of the target equipment to obtain a picture descriptor corresponding to the target picture if the equipment model and/or the version number of the target equipment are/is changed.

9. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the method of any one of claims 1 to 6.

10. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the steps of the method according to any of claims 1-6.

Technical Field

The present application relates to the field of terminal application technologies, and in particular, to a method and an apparatus for displaying a cross-application picture, a storage medium, and a terminal.

Background

The internet of things means that objects are connected by being installed in various information sensing devices, such as Radio Frequency Identification (RFID) devices, infrared sensors, global positioning systems, laser scanners or other modes, and then combined with the internet or a mobile communication network to finally form a huge intelligent network, and intelligent management of the objects is realized through terminals such as computers or mobile phones.

With the development of the internet of things, internet of things devices connected and managed by terminals such as mobile phones and computers are also increasing, generally, for different types of internet of things devices, a device application special for managing the type of devices is set at a mobile phone or a computer end, and when a plurality of internet of things devices are connected, a device center application is set for facilitating management, and the device center application is used for managing the device applications.

Disclosure of Invention

The embodiment of the application provides a cross-application picture display method, a cross-application picture display device, a storage medium and a terminal, which are applied to the terminal and can be used for displaying equipment pictures of all equipment connected with the terminal on a display page applied to an equipment center for managing all equipment connected with the terminal. The technical scheme is as follows:

in a first aspect, an embodiment of the present application provides a method for displaying a cross-application picture, where the method is applied to a terminal, where the terminal includes a device center application, the device center application is configured to manage a plurality of device applications, and each device application is configured to control a device connected to the terminal, and the method includes:

reading a target picture corresponding to target equipment from a file directory applied by the target equipment, and analyzing the target picture and equipment information of the target equipment to obtain a picture descriptor corresponding to the target picture;

generating a picture name based on the picture descriptor, naming the target picture by the picture name and writing the target picture into a file directory of the equipment center application;

and displaying the target picture in the equipment center application.

In a second aspect, an embodiment of the present application provides a cross-application picture display device, where the cross-application picture display device includes:

the image reading module is used for reading a target image corresponding to the target equipment from a file directory applied by the target equipment, and analyzing the target image and equipment information of the target equipment to obtain an image descriptor corresponding to the target image;

the picture unloading module is used for generating a picture name based on the picture descriptor, naming the target picture by the picture name and writing the target picture into a file directory of the equipment center application;

and the picture display module is used for displaying the target picture in the equipment center application.

In a third aspect, embodiments of the present application provide a storage medium having at least one instruction stored thereon, where the at least one instruction is adapted to be loaded by a processor and to perform the above-mentioned method steps.

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 adapted to be loaded by the processor and to perform the above-mentioned method steps.

The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:

by adopting the cross-application picture display method provided by the embodiment of the application, the target picture corresponding to the target equipment is firstly read from the file directory applied by the target equipment and is analyzed to obtain the picture descriptor corresponding to the target picture, the picture name is generated based on the picture descriptor, the target picture is named by the picture name and is written into the file directory applied by the equipment center, and finally the target picture is displayed in the equipment center application, so that the equipment pictures of the equipment connected with the terminal can be displayed on the display page applied by the equipment center for managing the equipment connected with the terminal, the equipment pictures of the equipment connected with the terminal can be viewed on the display interface applied by the equipment center without entering the equipment application by a user, and the user experience is improved; and in the storage process of the target picture, a picture descriptor is added to the target picture, the picture descriptor is used for naming the picture, the target picture is classified, and the searching and positioning and the management of the picture resources of the equipment are facilitated when the target picture is used again in the follow-up process.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a system architecture diagram of a cross-application picture display method according to an embodiment of the present application;

fig. 2 is a schematic flowchart of a cross-application picture display method according to an embodiment of the present application;

fig. 3 is an exemplary schematic diagram illustrating a target picture in an equipment center application according to an embodiment of the present application;

fig. 4 is a schematic flowchart of a cross-application picture display method according to an embodiment of the present application;

fig. 5 is a schematic flowchart of a cross-application picture display method according to an embodiment of the present application;

fig. 6 is a schematic structural diagram of a cross-application picture display device according to an embodiment of the present application;

fig. 7 is a schematic structural diagram of a cross-application picture display device according to an embodiment of the present application;

fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is noted that, unless explicitly stated or limited otherwise, "including" and "having" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.

When the terminal manages each device connected to the terminal, it needs to be implemented by the device application corresponding to each device on the terminal, and when there are many devices connected to the terminal, the device applications on the terminal are increased, which is inconvenient to manage. In the prior art, for such a phenomenon, an equipment center application is usually set in a terminal, the equipment center application is used as a management platform of the equipment application to manage each equipment application, and each equipment application displays a display interface of the equipment center application.

Generally, in an equipment center application, only a default icon of each equipment application is displayed, and a device picture of a device managed by each equipment application cannot be visually displayed, so that a user cannot directly see the device appearance of a device connected to a terminal in an application interface of the equipment center application, and can check the device appearance of the connected device only by entering a corresponding equipment application, which brings inconvenience to the user.

The application provides a cross-application picture display method, which can display the device pictures of all devices connected with a terminal on a display page of a device center application for managing all devices connected with the terminal.

Before describing the embodiments of the present invention more clearly, some concepts of the present invention will be described in detail to better understand the present invention.

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

The picture descriptor: the target picture for locating the query may be, for example, a file format of the picture, a content feature of the picture, a picture version number, and the like.

Inlet flow: reading bytes from the file, and reading the data in the hard disk file into the memory for use.

Referring to fig. 1, a system architecture diagram of a cross-application picture display method is provided for an embodiment of the present application.

As shown in fig. 1, 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 disposed in the terminal 100. The terminal 100 may be various electronic devices, and the devices 102 including but not limited to a smart watch, a smart phone, a tablet computer, a laptop portable computer, a desktop computer, etc. may be various internet of things devices including but not limited to a refrigerator, a washing machine, an air conditioner, a television, an earphone, etc. The device cloud 101 is a server storing device detailed information of each device, and developers can perform system upgrade or software update for each device through the device cloud. The device center application 1001 is used to manage each device application 1002 and provide a channel for opening the device application 1002. The device application 1002 is for managing each device 102 connected to the terminal.

It should be understood that the number of device clouds, devices, and device applications disposed in the terminal in fig. 1 is merely illustrative, and any number of device clouds, devices, and device applications disposed in the terminal may be used according to implementation requirements.

The following is a detailed description with reference to specific examples. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims. The flow diagrams depicted in the figures are merely exemplary and need not be performed in the order of the steps shown. For example, some steps are parallel, and there is no strict sequence relationship in logic, so the actual execution sequence is variable.

Referring to fig. 2 in conjunction with the system architecture diagram shown in fig. 1, a schematic flow chart of a cross-application picture display method is provided in an embodiment of the present application. The embodiment of the present application takes the application of the method to a terminal as an example for explanation. As shown in fig. 2, the cross-application picture display method may include the following steps S101 to S103.

S101, reading a target picture corresponding to target equipment from a file directory applied by the target equipment, and analyzing the target picture and equipment information of the target equipment to obtain a picture descriptor corresponding to the target picture;

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 an earphone, the target device application is an application for controlling the earphone, and the target application may perform control operations such as volume adjustment and sound effect mode switching on the earphone. 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 application may perform control operations such as temperature adjustment and freezing mode switching on the refrigerator.

It is worth mentioning that each target device application controls more than one target device, for example, the target device application is a refrigerator application controlling a refrigerator, and in case that there is more than one refrigerator connected to the terminal, the refrigerator application can control a plurality of refrigerators connected to the terminal respectively.

Specifically, a target picture corresponding to a target device is read from a file directory applied by the target device, and then the target picture and device information of the target device are analyzed to obtain a picture descriptor corresponding to the target picture.

Optionally, before reading a target picture corresponding to a target device connected to a terminal in a file directory of a target device application, in a possible specific implementation scenario, after the target device is connected to the terminal, a target device application corresponding to the target device in the terminal may acquire device information of the target device, where the device information may be a device model of the target device or another device identifier that may represent the target device, and then the target device application may download a device picture of the target device from a device cloud of the target device to the file directory corresponding to the target device application according to the device information of the target device.

Optionally, the device pictures downloaded from the device cloud by the target device application may include multiple device pictures, and one device picture is read from any of the device pictures as the target picture corresponding to the target device.

It should be understood that the target picture is one of a plurality of device pictures of the target device.

Optionally, the manner of reading the target picture corresponding to the target device from the file directory applied by the target device may be to read the target picture corresponding to the target device in a packet management manner.

Optionally, the manner of reading the target picture corresponding to the target device from the file directory applied by the target device may be that a Uniform Resource Identifier (URI) of the target picture is provided by a file provider, and then the position of the target picture is located based on the URI and the target picture is read.

Optionally, the reading of the target picture corresponding to the target device from the file directory applied by the target device may be performed by selecting an appropriate manner according to the number of devices currently connected to the terminal. In a possible implementation manner, if the number of devices is less than a device number threshold, obtaining an input stream of a target picture from a file directory of the target device application through packet management; if the device number is larger than or equal to the device number threshold, acquiring a universal resource identifier of a target picture in a device application of the target device through a file provider, and acquiring an input stream of the target picture from a file directory of the target device application through a content provider based on the universal resource identifier. The devices connected with the terminal include devices in a connected state and devices which are connected once.

Optionally, the picture descriptor includes at least one of a device model, a device color, a device brand, a picture type, a presentation type, a version number, and a picture suffix.

For example, each picture descriptor may be defined as:

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

wherein modelId is the device model, colorId is the device color, brand of equipment, imageType is the picture type, displayType is the show type, shortcutId is the shortcut path descriptor, version is the version number, and suffix is the picture suffix.

It should be understood that the picture descriptors are not identical in content according to the device picture definitions of different target devices, and the definitions of the picture descriptors of the device pictures of different target devices are unique.

S102, generating a picture name based on the picture descriptor, naming the target picture by the picture name and writing the target picture into a file directory of the equipment center application;

the picture descriptor is used for positioning a target picture to be queried.

It can be understood that, after the target device application corresponding to the target device downloads the device picture of the target device to the file directory corresponding to the target device application from the device cloud of the target device, the device center application reads the target picture corresponding to the target device from the file directory of the target device application, analyzes the target picture to obtain the picture descriptor corresponding to the target picture, then generates a picture name according to the picture descriptor, and stores the target picture in the file directory of the device center application based on the picture name generated by the picture descriptor.

The picture descriptor may include a device model, a device color, a device brand, a picture type, a presentation type, a version number, a picture suffix, and the like, and the picture name may be defined by all the picture descriptors.

Optionally, when the target picture is named by the picture name and written into the file directory of the device center application, a new target folder may be created in the file directory of the device center application, a folder name is generated based on the picture descriptor, and the target picture is stored in the folder named by the folder name by the picture name.

The folder name may be defined by a picture descriptor such as a device model, a device color, a device brand, and the like.

For example, the folder name format may be: ModelId-colorId-brand/. Where modelId is the device model, colorId is the device color, and brand of device. The format of the picture name may be: modelId-colorId-brand _ imageType _ displayType _ version _ suffix. The image type is a picture type, the displayType is a display type, the version is a version number, and the suffix is a picture suffix.

S103, displaying the target picture in the equipment center application.

Specifically, when the target device establishes connection with the terminal for the first time, the target picture is displayed in a UI process corresponding to the device center application; when the target device is not connected with the terminal for the first time, the picture descriptor is obtained based on the device information of the target device, the target picture is positioned from a file directory of the device center application based on the picture descriptor, and the target picture is displayed in a UI process corresponding to the device center application.

It can be understood that, when the target device is not connected to the terminal for the first time, since the target picture of the target device is already stored in the device center application, the picture descriptor is obtained based on the device information of the target device, the target picture is located from the file directory of the device center application based on the picture descriptor, and the target picture is displayed in the UI process corresponding to the device center application, the device information of the target device includes information features, such as a device model, a device color, a device brand, and the like, which are the same as the picture descriptor, the picture descriptor including information, such as a device model, a device color, a device brand, and the like, can be obtained by parsing the device information of the target device, the target picture is located from the file directory of the device center application based on the picture descriptor, and presented in the equipment center application.

It should be understood that the target device establishes a connection with the terminal for the first time and the target device establishes a connection with the terminal for the non-first time, where the target device is not only a single device, but may also refer to multiple devices of the same model and the same appearance, for example: the equipment 1, the equipment 2 and the equipment 3 are three equipment with the same model and the same appearance, the terminal 0 is additionally arranged, at the initial moment, the equipment 1, the equipment 2 and the equipment 3 are never connected with the terminal 0, when the equipment 2 is connected with the terminal for the first time, the equipment application corresponding to the equipment 2 in the terminal downloads the equipment picture of the equipment 2 from the equipment cloud and stores the equipment picture in the file directory of the equipment application, then one of the equipment pictures is read from the file directory of the equipment application and stored in the file directory of the equipment center application as a target picture, and the target picture is displayed in the equipment center application. At this time, if the device 1 or the device 3 establishes connection with the terminal, since the device 1, the device 2, and the device 3 are devices of the same model and the same appearance, the device pictures of the device 1, the device 2, and the device 3 are the same, and at this time, since one device picture of the device 2 has been already stored in the file directory applied to the device center as the target picture, when the device 1 or the device 3 establishes connection with the terminal, the target picture same as the device 2 can be directly used without executing a step of downloading the device picture at the device cloud according to the device information, and transferring the device picture from the file directory applied to the device center to the file directory applied to the device center, so that the amount of operation is reduced, several devices of the same model and the same appearance share one target picture, so that the storage space is saved, and further, the waste of resources is reduced.

In a possible implementation, the locating the target picture from the file directory of the device center application based on the picture descriptor may locate a folder related to the picture descriptor in the file directory of the device center application based on the picture descriptor obtained from the device information of the target device, where a folder name of the folder includes the picture descriptor, and the target picture is stored in the folder.

In a possible implementation manner, the locating the target picture from the file directory of the device center application based on the picture descriptor may be directly locating the target picture in the file directory of the device center application based on a picture descriptor obtained from device information of a target device, where a picture name of the target picture includes the picture descriptor.

Referring to fig. 3, an exemplary schematic diagram of displaying a target picture in a device center application is provided for an embodiment of the present application.

As shown in fig. 3, the device center application displays a plurality of device applications, including connected device applications and unconnected device applications, and displays a device picture of a target device in a display area of each device application.

By adopting the cross-application picture display method provided by the embodiment of the application, the target picture corresponding to the target equipment is firstly read from the file directory applied by the target equipment and is analyzed to obtain the picture descriptor corresponding to the target picture, the picture name is generated based on the picture descriptor, the target picture is named by the picture name and is written into the file directory applied by the equipment center, and finally the target picture is displayed in the equipment center application, so that the equipment pictures of the equipment connected with the terminal can be displayed on the display page applied by the equipment center for managing the equipment connected with the terminal, the equipment pictures of the equipment connected with the terminal can be viewed on the display interface applied by the equipment center without entering the equipment application by a user, and the user experience is improved; and in the storage process of the target picture, a picture descriptor is added to the target picture, the picture descriptor is used for naming the picture, the target picture is classified, and the searching and positioning and the management of the picture resources of the equipment are facilitated when the target picture is used again in the follow-up process.

Referring to fig. 4, a schematic flow chart of a cross-application picture display method is provided in the embodiment of the present application. The execution main body of the embodiment of the application is a terminal. As shown in fig. 4, the cross-application picture presentation method may include the following steps.

S201, acquiring equipment information of target equipment;

and when the target equipment is connected with the terminal, the terminal acquires the equipment information of the target equipment. The device information may include: device model, device brand, etc.

S202, downloading a device picture corresponding to the target device from a cloud to a file directory applied by the target device based on the device information;

specifically, a device picture corresponding to the target device is downloaded from a device cloud of the target device based on the device information of the target device, and is stored in a file directory applied to the target device.

The device pictures corresponding to the target device are uploaded to a device cloud by a developer, and the device pictures corresponding to the target device may include one or more.

S203, reading a target picture corresponding to target equipment from a file directory applied by the target equipment, and analyzing the target picture and equipment information of the target equipment to obtain a picture descriptor corresponding to the target picture;

optionally, when there are multiple device pictures corresponding to the target device, if the device pictures of the target device recorded in the file directory applied by the target device include multiple device pictures, one of the device pictures is optionally selected as the target picture corresponding to the target device.

It should be understood that the target picture is one of a plurality of device pictures of the target device.

S204, generating a picture name based on the picture descriptor, naming the target picture by the picture name and writing the target picture into a file directory of the equipment center application;

s205, when the target device establishes connection with the terminal for the first time, displaying the target picture in the device center application;

s206, when the target device is not connected with the terminal for the first time, the picture descriptor is obtained based on the device information of the target device, the target picture is positioned from the file directory of the device center application based on the picture descriptor, and the target picture is displayed in the device center application.

It can be understood that, after the target device is connected to and disconnected from the terminal for the first time, the device picture of the target device is already stored in the file directory of the in-terminal device center application. When the target device is connected with the terminal again, because a target picture corresponding to the target device is stored in a file directory of the device center application, the picture descriptor is directly obtained based on the device information of the target device, the target picture is positioned from the file directory of the device center application based on the picture descriptor, and the target picture is displayed in the device center application.

It should be understood that, in the embodiment of the present application, the target device is not limited to only one device, but generally refers to the same model of device with the same appearance. For example, when the headset device 1 is connected to the terminal for the first time, the device picture of the headset device 1 is stored in the file directory of the device center application in the terminal, and the device picture stored in the file directory of the device center application is the target picture, after that, when the headset device 2, the headset device 3, the headset device 4, and the headset device 5 of the same type and appearance as the headset device 1 are connected to the terminal, the picture descriptor of the target picture is obtained based on the device information of the headset device 2, the headset device 3, the headset device 4, and the headset device 5, the target picture is directly located from the file directory of the device center application according to the picture descriptor and displayed in the device center application without downloading the device picture in the cloud according to the device information, and the device picture is transferred from the file directory applied by the device to the file directory applied by the device center, so that the calculation amount is reduced, and several devices with the same type and the same appearance share one target picture, thereby saving the storage space and reducing the waste of resources.

In the embodiment of the application, the device information of the target device is firstly acquired, the device picture 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 picture corresponding to the target device is read from the file directory of the target device application, the target picture and the device information of the target device are analyzed to obtain the picture descriptor corresponding to the target picture, the picture name is generated based on the picture descriptor, the target picture is named by the picture name and written into the file directory of the device center application, and finally the target picture is displayed in the device center application, so that the device pictures of the devices connected with the terminal are displayed on the display page of the device center application for managing the devices connected with the terminal, and a user can view the device pictures of the devices connected with the terminal on the display interface of the device center application without entering the device application The equipment pictures of each equipment improve the user experience; the method comprises the steps of adding a picture descriptor to a target picture in the storage process of the target picture, naming the picture by using the picture descriptor, classifying the target picture, directly searching and positioning in a file directory applied by a device center according to the picture descriptor without performing the step of reading the target picture from the file directory applied by the target device and storing the target picture in the file directory applied by the device center when the target device is not connected with a terminal for the first time, so that the target picture can be read, and the target picture is displayed in the device center application, thereby reducing the operation amount and saving the storage space; and no matter how many device pictures of the target device are downloaded at the cloud, only one of the device pictures is read and stored in the file directory of the device center application, and only one device picture is displayed in the device center application, so that the storage space of a disk and the memory space are saved.

After the target picture is displayed in the device center application, if a developer upgrades a device system or a function of the target device, the device model and/or the version number of the target device may change, so please refer to fig. 5, which provides a flowchart of a cross-application picture display method for another exemplary embodiment of the present application. As shown in fig. 5, the cross-application picture presentation method may include the following steps.

S301, acquiring equipment information of target equipment;

s302, judging whether the equipment model and/or the version number of the target equipment are changed;

specifically, whether the device model and/or the version number of the target device changes or not can be judged according to the device information of the target device connected with the terminal;

s303, if the device model and/or the version number of the target device change, reading a target picture corresponding to the target device from a file directory applied by the target device, and analyzing the target picture and the device information of the target device to obtain a picture descriptor corresponding to the target picture;

it can be understood that, if the device model and/or version number of the target device changes, the device picture of the target device currently shown in the device center application needs to be updated, that is, a new target picture corresponding to the target device needs to be read again from the file directory of the target device application, the new target picture is replaced by the original device picture of the target device shown in the device center application, and the new target picture is shown in the device center application.

S304, generating a picture name based on the picture descriptor, naming the target picture by the picture name and writing the target picture into a file directory of the equipment center application;

s305, displaying the target picture in the equipment center application.

In the embodiment of the application, after the target device connected to the terminal is displayed in the device center application, if the device model and/or the version number of the target device changes, the display of the device picture of the target device is updated in the device center application, so that the latest version of the device picture of the target device is constantly displayed in the device center application, a user can view the latest version of the device picture constantly, and user experience is improved.

Referring to fig. 6, a schematic structural diagram of a cross-application picture display device is provided in the embodiment of the present application. As shown in fig. 6, the cross-application picture display apparatus 1 may be implemented by software, hardware, or a combination of both as all or a part of a terminal. According to some embodiments, the cross-application picture display device 1 includes a picture reading module 11, a picture unloading module 12, and a picture display module 13, and specifically includes:

the image reading module 11 is configured to read a target image corresponding to a target device from a file directory applied by the target device, and analyze the target image and device information of the target device to obtain an image descriptor corresponding to the target image;

the picture unloading module 12 is configured to generate a picture name based on the picture descriptor, name the target picture by the picture name, and write the target picture into a file directory of the device center application;

a picture display module 13, configured to display the target picture in the device center application.

Optionally, the picture display module 13 is specifically configured to:

when the target equipment establishes connection with the terminal for the first time, displaying the target picture in the equipment center application;

when the target device is not connected with the terminal for the first time, the picture descriptor is obtained based on the device information of the target device, the target picture is positioned from a file directory of the device center application based on the picture descriptor, and the target picture is displayed in the device center application.

Optionally, please refer to fig. 7, which provides a schematic structural diagram of a cross-application picture display device according to an embodiment of the present application. As shown in fig. 7, the apparatus further includes:

an information obtaining module 14, configured to obtain device information of a target device;

and the picture downloading module 15 is configured to download, from the cloud, the device picture corresponding to the target device to a file directory of the target device application based on the device information.

Optionally, as shown in fig. 7, the apparatus further includes:

an update determining module 16, configured to determine whether a device model and/or a version number of the target device changes;

and the picture updating module 17 is configured to, if the device model and/or the version number of the target device changes, execute the step of reading a target picture corresponding to the target device from a file directory applied by the target device, and analyze the target picture and the device information of the target device to obtain a picture descriptor corresponding to the target picture.

Optionally, the picture reading module 11 is specifically configured to:

acquiring the number of devices which are connected with the terminal at present;

if the equipment number is smaller than the equipment number threshold value, acquiring an input stream of a target picture from a file directory applied by the target equipment through packet management;

if the device number is larger than or equal to the device number threshold, acquiring a universal resource identifier of a target picture in a device application of the target device through a file provider, and acquiring an input stream of the target picture from a file directory of the target device application through a content provider based on the universal resource identifier.

Optionally, in the apparatus, the picture descriptor includes at least one of a device model, a device color, a device brand, a picture type, a presentation type, a version number, and a picture suffix.

The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.

In the embodiment of the application, the device information of the target device is firstly acquired, the device picture 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 picture corresponding to the target device is read from the file directory of the target device application, the target picture and the device information of the target device are analyzed to obtain the picture descriptor corresponding to the target picture, the picture name is generated based on the picture descriptor, the target picture is named by the picture name and written into the file directory of the device center application, and finally the target picture is displayed in the device center application, so that the device pictures of the devices connected with the terminal are displayed on the display page of the device center application for managing the devices connected with the terminal, and a user can view the device pictures of the devices connected with the terminal on the display interface of the device center application without entering the device application The equipment pictures of each equipment improve the user experience; the method comprises the steps of adding a picture descriptor to a target picture in the storage process of the target picture, naming the picture by using the picture descriptor, classifying the target picture, directly searching and positioning in a file directory applied by a device center according to the picture descriptor without performing the step of reading the target picture from the file directory applied by the target device and storing the target picture in the file directory applied by the device center when the target device is not connected with a terminal for the first time, so that the target picture can be read, and the target picture is displayed in the device center application, thereby reducing the operation amount and saving the storage space; when the device model and/or the version number of the target device change, the display of the device picture of the target device is updated correspondingly in the device center application, so that the latest version of the device picture of the target device is constantly displayed in the device center application, a user can be guaranteed to view the latest version of the device picture constantly, and the user experience is improved.

An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the cross-application picture display method according to the embodiment shown in fig. 1 to 5, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 5, which is not described herein again.

The present application further provides a computer program product, where at least one instruction is stored in the computer program product, and the at least one instruction is loaded by the processor and executes the cross-application picture display method according to the embodiment shown in fig. 1 to 5, where a specific execution process may refer to a specific description of the embodiment shown in fig. 1 to 5, and is not described herein again.

Referring to fig. 8, a block diagram of a terminal according to an exemplary embodiment of the present application is shown. A 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, memory 120, input device 130, and output device 140 may be connected by a bus 150.

Processor 110 may include one or more processing cores. The processor 110 connects various parts within the entire terminal using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-programmable gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.

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 medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets.

The input device 130 is used for receiving 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 for outputting instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In the embodiment of the present application, the input device 130 may be a temperature sensor for acquiring an operating temperature of the terminal. The output device 140 may be a speaker for outputting audio signals.

In addition, those skilled in the art will appreciate that the configurations of the terminals illustrated in the above-described figures do not constitute limitations on the terminals, as the terminals may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components may be used. For example, the terminal further 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 are not described herein again.

In the embodiment of the present application, the main body of execution of each step may be the terminal described above. Optionally, the execution subject of each step is an operating system of the terminal. The operating system may be an android system, an IOS system, or another operating system, which is not limited in this embodiment of the present application.

In the terminal shown in fig. 6, the processor 110 may be configured to call the audio signal processing program stored in the memory 120 and execute the program to implement the cross-application picture presentation method according to the various method embodiments of the present application.

By adopting the cross-application picture display method provided by the embodiment of the application, the equipment information of the target equipment is firstly obtained, then the equipment picture corresponding to the target equipment is downloaded from the cloud to the file directory of the target equipment application based on the equipment information, the target picture corresponding to the target equipment is read from the file directory of the target equipment application, the target picture and the equipment information of the target equipment are analyzed to obtain the picture descriptor corresponding to the target picture, the picture name is generated based on the picture descriptor, the target picture is named by the picture name and written into the file directory of the equipment center application, and finally the target picture is displayed in the equipment center application, so that the equipment pictures of each equipment connected with the terminal are displayed on the display page of the equipment center application for managing each equipment connected with the terminal, the user can check the equipment pictures of each equipment connected with the terminal on the display interface of the equipment center application without entering the equipment application, so that the user experience is improved; the method comprises the steps of adding a picture descriptor to a target picture in the storage process of the target picture, naming the picture by using the picture descriptor, classifying the target picture, directly searching and positioning in a file directory applied by a device center according to the picture descriptor without performing the step of reading the target picture from the file directory applied by the target device and storing the target picture in the file directory applied by the device center when the target device is not connected with a terminal for the first time, so that the target picture can be read, and the target picture is displayed in the device center application, thereby reducing the operation amount and saving the storage space; when the device model and/or the version number of the target device change, the display of the device picture of the target device is updated correspondingly in the device center application, so that the latest version of the device picture of the target device is constantly displayed in the device center application, a user can be guaranteed to view the latest version of the device picture constantly, and the user experience is improved.

It is clear to a person skilled in the art that the solution of the present application can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, a Field-ProgrammaBLE Gate Array (FPGA), an Integrated Circuit (IC), or the like.

It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some service interfaces, devices or units, and may be an electrical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program, which is stored in a computer-readable memory, and the memory may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.

The above description is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure should not be limited thereby. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure are intended to be included within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:文件分类方法、装置、设备及介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!