
















技术领域technical field
本申请涉及计算机技术领域,具体地涉及一种跨进程信息处理方法、电子设备、存储介质和程序产品。The present application relates to the field of computer technology, in particular to a cross-process information processing method, electronic equipment, storage media and program products.
背景技术Background technique
为了限制用户对外置存储卡的无序使用,并有效管理各个应用自己的文件、减少混乱,安卓(Android)系统引入分区存储(Scoped Storage)机制。在分区存储机制下,每个应用均有自己的存储空间;应用不能通过绝对文件路径方式直接访问其它应用的存储空间,即应用不能在未被其它应用授权下直接读取其它应用的数据。In order to limit the disorderly use of external memory cards by users, effectively manage the files of each application, and reduce confusion, the Android system introduces a Scoped Storage mechanism. Under the partition storage mechanism, each application has its own storage space; applications cannot directly access the storage space of other applications through absolute file paths, that is, applications cannot directly read the data of other applications without authorization from other applications.
但是,在一些应用场景中,应用需要跨进程进行数据读取,即某一应用可能需要读取其应用的数据。例如,在融合通信(Rich Communication Suite,RCS)应用场景中,应用A需要实现RCS功能,应用A将文件路径发送至RCS服务应用,RCS服务应用基于应用A提供的文件路径获取文件,进而将文件发送至服务器。但是,在引入分区存储机制之后,每个应用的存储空间相对独立,RCS服务应用不能读取其它应用的数据,进而无法实现RCS功能。However, in some application scenarios, applications need to read data across processes, that is, an application may need to read data of other applications. For example, in a converged communication (Rich Communication Suite, RCS) application scenario, application A needs to implement the RCS function, application A sends the file path to the RCS service application, and the RCS service application obtains the file based on the file path provided by application A, and then sends the file sent to the server. However, after the partition storage mechanism is introduced, the storage space of each application is relatively independent, and the RCS service application cannot read the data of other applications, and thus cannot realize the RCS function.
发明内容Contents of the invention
有鉴于此,本申请提供一种跨进程信息处理方法、电子设备、存储介质和程序产品,以利于解决现有技术中在引入分区存储机制之后,每个应用的存储空间相对独立,无法实现跨进程的信息处理的问题。In view of this, the present application provides a cross-process information processing method, electronic equipment, storage media and program products, so as to solve the problem that in the prior art, after the partition storage mechanism is introduced, the storage space of each application is relatively independent, and cross-process information cannot be realized. Process information processing issues.
第一方面,本申请实施例提供了一种跨进程信息处理方法,包括:In the first aspect, the embodiment of the present application provides a cross-process information processing method, including:
第一应用将第一业务数据发送至第三应用;The first application sends the first service data to the third application;
所述第三应用将所述第一业务数据存储在所述第三应用对应的独立存储分区内;The third application stores the first service data in an independent storage partition corresponding to the third application;
所述第三应用向所述第一应用发送第一标识信息,所述第一标识信息对应所述第一业务数据;The third application sends first identification information to the first application, where the first identification information corresponds to the first service data;
所述第一应用向所述第二应用发送所述第一标识信息;The first application sends the first identification information to the second application;
所述第二应用根据所述第一标识信息在所述第三应用的独立存储分区内获取所述第一业务数据。The second application acquires the first service data in an independent storage partition of the third application according to the first identification information.
优选地,所述方法还包括:Preferably, the method also includes:
所述第二应用接收第二业务数据;The second application receives second service data;
所述第二应用将所述第二业务数据发送至所述第三应用;The second application sends the second service data to the third application;
所述第三应用将所述第二业务数据存储在所述第三应用对应的独立存储分区内;The third application stores the second service data in an independent storage partition corresponding to the third application;
所述第一应用在所述第三应用的独立存储分区内获取所述第二业务数据。The first application acquires the second service data in an independent storage partition of the third application.
优选地,所述第一应用在所述第三应用的独立存储分区内获取所述第二业务数据,包括:Preferably, the first application obtains the second service data in the independent storage partition of the third application, including:
所述第一应用通过监听者模式监听所述第三应用的独立存储分区内的数据变化;The first application monitors data changes in the independent storage partition of the third application through a listener mode;
当所述第三应用将所述第二业务数据存储在所述第三应用对应的独立存储分区内后,所述第一应用在所述第三应用的独立存储分区内获取所述第二业务数据。After the third application stores the second service data in the independent storage partition corresponding to the third application, the first application obtains the second service data in the independent storage partition of the third application data.
优选地,所述方法还包括:Preferably, the method also includes:
所述第二应用接收第二业务数据;The second application receives second service data;
所述第二应用将所述第二业务数据发送至所述第一应用。The second application sends the second service data to the first application.
优选地,所述方法还包括:Preferably, the method also includes:
所述第一应用将所述第二业务数据发送至所述第三应用;The first application sends the second service data to the third application;
所述第三应用将所述第二业务数据存储在所述第三应用对应的独立存储分区内。The third application stores the second service data in an independent storage partition corresponding to the third application.
优选地,所述第一应用为信息业务应用,所述第一业务数据为用户编辑的信息,所述第一应用将第一业务数据发送至第三应用,包括:Preferably, the first application is an information service application, the first service data is information edited by a user, and the first application sends the first service data to a third application, including:
所述信息业务应用接收用户编辑的信息;The information service application receives the information edited by the user;
响应于所述用户的信息发送操作,所述信息业务应用将所述用户编辑的融合通信文件发送至所述第三应用。In response to the user's information sending operation, the information service application sends the converged communication file edited by the user to the third application.
优选地,所述第一应用为通话业务应用,所述第一业务数据为用户编辑的通话前交互文件,所述第一应用将第一业务数据发送至第三应用,包括:Preferably, the first application is a call service application, the first service data is a pre-call interaction file edited by the user, and the first application sends the first service data to the third application, including:
在通话前,接收用户编辑的通话前交互文件;Before the call, receive the pre-call interaction file edited by the user;
响应于所述用户的通话呼叫操作,所述通话业务应用将所述通话前交互文件发送至所述第三应用。In response to the call operation of the user, the call service application sends the pre-call interaction file to the third application.
优选地,所述第一应用为通话业务应用,所述第一业务数据为用户编辑的通话过程中交互文件,所述第一应用将第一业务数据发送至第三应用,包括:Preferably, the first application is a call service application, the first service data is an interactive file during a call edited by the user, and the first application sends the first service data to the third application, including:
在通话过程中,所述通话业务应用接收用户编辑的通话过程中交互文件;During the call, the call service application receives the interactive file during the call edited by the user;
所述通话业务应用将所述通话过程中交互文件发送至所述第三应用。The call service application sends the in-call interaction file to the third application.
优选地,所述第一应用为通话业务应用,所述第一业务数据为用户编辑的通话挂断后交互文件,所述第一应用将第一业务数据发送至第三应用,包括:Preferably, the first application is a call service application, the first service data is an interaction file edited by the user after the call is hung up, and the first application sends the first service data to the third application, including:
在接收到来电,触发通话挂断操作后,所述通话业务应用接收用户编辑的通话挂断后交互文件;After receiving an incoming call and triggering a call hangup operation, the call service application receives the post-call hangup interaction file edited by the user;
所述通话业务应用将所述通话挂断后交互文件发送至所述第三应用。The call service application sends the interaction file after the call is hung up to the third application.
优选地,所述第二应用为融合通信RCS服务应用。Preferably, the second application is a converged communication RCS service application.
第二方面,本申请实施例提供了一种电子设备,包括:In a second aspect, the embodiment of the present application provides an electronic device, including:
一个或多个处理器;one or more processors;
存储器;memory;
以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行上述第一方面任意一项所述的方法。and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the electronic device, cause the The electronic device executes the method described in any one of the above first aspects.
第三方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行上述第一方面任意一项所述的方法。In a third aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned The method according to any one of the first aspect.
第四方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包含可执行指令,当所述可执行指令在计算机上执行时,使得计算机执行上述第一方面任意一项所述的方法。In a fourth aspect, an embodiment of the present application provides a computer program product, the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes any one of the above-mentioned first aspects. Methods.
在本申请实施例中,第三应用作为实现数据存储的应用,第二应用可以通过第三应用获取第一应用的业务数据,实现跨进程信息处理。另外,由于第一应用的业务数据存储在第三应用的独立存储分区内,即使第一应用和第二应用均卸载,第一应用的业务数据仍不会丢失。In the embodiment of the present application, the third application is used as an application for implementing data storage, and the second application can obtain the business data of the first application through the third application to realize cross-process information processing. In addition, since the business data of the first application is stored in an independent storage partition of the third application, even if both the first application and the second application are uninstalled, the business data of the first application will not be lost.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative labor.
图1为本申请实施例提供的一种电子设备示意图;FIG. 1 is a schematic diagram of an electronic device provided by an embodiment of the present application;
图2为本申请实施例提供的一种跨进程信息处理方法应用场景示意图;FIG. 2 is a schematic diagram of an application scenario of a cross-process information processing method provided by an embodiment of the present application;
图3为本申请实施例提供的一种跨进程信息处理方法流程示意图;FIG. 3 is a schematic flow diagram of a cross-process information processing method provided by an embodiment of the present application;
图4为本申请实施例提供的一种第一应用的场景示意图;FIG. 4 is a schematic diagram of a scene of a first application provided by an embodiment of the present application;
图5为本申请实施例提供的另一种跨进程信息处理方法应用场景示意图;FIG. 5 is a schematic diagram of an application scenario of another cross-process information processing method provided by an embodiment of the present application;
图6为本申请实施例提供的另一种跨进程信息处理方法流程示意图;FIG. 6 is a schematic flowchart of another cross-process information processing method provided by the embodiment of the present application;
图7为本申请实施例提供的另一种第一应用的场景示意图;FIG. 7 is a schematic diagram of another first application scenario provided by the embodiment of the present application;
图8为本申请实施例提供的另一种跨进程信息处理方法应用场景示意图;FIG. 8 is a schematic diagram of an application scenario of another cross-process information processing method provided by the embodiment of the present application;
图9为本申请实施例提供的另一种跨进程信息处理方法流程示意图;FIG. 9 is a schematic flowchart of another cross-process information processing method provided by the embodiment of the present application;
图10A为本申请实施例提供的一种RCS功能开关场景示意图;FIG. 10A is a schematic diagram of an RCS function switch scene provided by an embodiment of the present application;
图10B为本申请实施例提供的一种RCS应用场景示意图;FIG. 10B is a schematic diagram of an RCS application scenario provided by an embodiment of the present application;
图11为本申请实施例提供的一种电子设备的软件结构框图;FIG. 11 is a software structural block diagram of an electronic device provided in an embodiment of the present application;
图12为本申请实施例提供的另一种跨进程信息处理方法流程示意图;FIG. 12 is a schematic flowchart of another cross-process information processing method provided by the embodiment of the present application;
图13为本申请实施例提供的另一种跨进程信息处理方法流程示意图;FIG. 13 is a schematic flowchart of another cross-process information processing method provided by the embodiment of the present application;
图14为本申请实施例提供的另一种跨进程信息处理方法流程示意图;FIG. 14 is a schematic flowchart of another cross-process information processing method provided by the embodiment of the present application;
图15为本申请实施例提供的一种通话业务应用的场景示意图;FIG. 15 is a schematic diagram of a scenario of a call service application provided by an embodiment of the present application;
图16为本申请实施例提供的一种电子设备的结构示意图。FIG. 16 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。In order to better understand the technical solutions of the present application, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be clear that the described embodiments are only some of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。Terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of this application and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,甲和/或乙,可以表示:单独存在甲,同时存在甲和乙,单独存在乙这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used herein is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B, which may mean that A exists alone, and A and B exist simultaneously. B, there are three situations of B alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.
参见图1,为本申请实施例提供的一种电子设备示意图。在图1中,以手机100为例对电子设备进行示例性说明。可理解,本申请实施例涉及的电子设备除了手机100以外,还可以为平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digitalassistant,PDA)、智能手表、上网本、可穿戴电子设备、增强现实技术(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、车载设备、智能汽车、智能音响、机器人、智能眼镜、智能电视等等。Referring to FIG. 1 , it is a schematic diagram of an electronic device provided by an embodiment of the present application. In FIG. 1 , an electronic device is illustrated by taking a
需要指出的是,在一些可能的实现方式中,电子设备也可能称为终端设备、用户设备(User Equipment,UE)等,本申请实施例对此不作限制。It should be noted that, in some possible implementation manners, an electronic device may also be called a terminal device, a user equipment (User Equipment, UE), etc., which is not limited in this embodiment of the present application.
为了限制用户对外置存储卡的无序使用,并有效管理各个应用自己的文件、减少混乱,安卓(Android)系统引入分区存储(Scoped Storage)机制。在分区存储机制下,每个应用均有自己的存储空间;应用不能翻过自己的存储空间,访问其它应用的存储空间,即应用不能读取其它应用的数据。In order to limit the disorderly use of external memory cards by users, effectively manage the files of each application, and reduce confusion, the Android system introduces a Scoped Storage mechanism. Under the partition storage mechanism, each application has its own storage space; an application cannot go over its own storage space and access the storage space of other applications, that is, the application cannot read the data of other applications.
但是,在一些应用场景中,应用需要跨进程进行数据读取,即某一应用可能需要读取其他应用的数据。例如,在融合通信(Rich Communication Suite,RCS)应用场景中,应用A需要实现RCS功能,应用A将文件路径发送至RCS服务应用,RCS服务应用基于应用A提供的文件路径获取文件,进而将文件发送至服务器。但是,在引入分区存储机制之后,每个应用的存储空间相对独立,RCS服务应用不能读取其它应用的数据,即无法实现跨进程的信息处理,进而无法实现RCS功能。However, in some application scenarios, applications need to read data across processes, that is, an application may need to read data from other applications. For example, in a converged communication (Rich Communication Suite, RCS) application scenario, application A needs to implement the RCS function, application A sends the file path to the RCS service application, and the RCS service application obtains the file based on the file path provided by application A, and then sends the file sent to the server. However, after the partition storage mechanism is introduced, the storage space of each application is relatively independent, and the RCS service application cannot read the data of other applications, that is, it cannot realize cross-process information processing, and thus cannot realize the RCS function.
针对上述问题,一种可行的方案是由保存文件C的应用A访问文件C并将文件C发送到应用B。例如,在融合通信(Rich Communication Suite,RCS)应用场景中,应用A需要实现RCS功能,应用A将文件C保存到自身的独立存储区,在需要通过RCS功能发送文件C时,应用A读取文件C到缓存,然后将文件C发送到RCS服务应用。RCS服务应用接受到文件C后将文件C发送至服务器。Aiming at the above problem, a feasible solution is that the application A that saves the file C accesses the file C and sends the file C to the application B. For example, in a converged communication (Rich Communication Suite, RCS) application scenario, application A needs to implement the RCS function, application A saves file C to its own independent storage area, and when it needs to send file C through the RCS function, application A reads File C to the cache, and then send file C to the RCS service application. After receiving the file C, the RCS service application sends the file C to the server.
然而,上述方案虽然可以实现跨进程的数据读取,但是,当应用A被卸载时,其保存的文件C就会被同步删除,在这之后,其他应用需要访问文件C时就无法访问。因此,本申请实施例提供了一种跨进程信息处理方案,以在实现跨进程数据访问的前提下确保数据不会因为应用卸载而被自动删除。以下结合附图进行详细说明。However, although the above solution can realize cross-process data reading, when application A is uninstalled, its saved file C will be deleted synchronously, and after that, other applications cannot access file C when they need to access it. Therefore, the embodiment of the present application provides a cross-process information processing solution to ensure that data will not be automatically deleted due to application uninstallation under the premise of realizing cross-process data access. A detailed description will be given below in conjunction with the accompanying drawings.
参见图2,为本申请实施例提供的一种跨进程信息处理方法应用场景示意图。在图2中示出了第一应用、第二应用和第三应用,该第一应用、第二应用和第三应用可以位于同一电子设备,在图2所示的应用场景中,该电子设备为发送端。Referring to FIG. 2 , it is a schematic diagram of an application scenario of a cross-process information processing method provided by an embodiment of the present application. The first application, the second application and the third application are shown in FIG. 2, and the first application, the second application and the third application may be located on the same electronic device. In the application scenario shown in FIG. 2, the electronic device for the sender.
当第一应用需要通过第二应用发送数据时,由于第二应用无法直接在第一应用的独立存储分区内获取数据,因此第一应用首先将业务数据发送至第三应用,存储在第三应用的独立存储分区内;然后第二应用获取第三应用存储的相关数据。具体地,包括步骤:(1)第一应用向第三应用发送第一业务数据;(2)第三应用将第一业务数据存储在其独立存储分区内,并生成第一标识信息,该第一标识信息对应第一业务数据,通过该第一标识信息可以访问第三应用的独立存储分区内存储的第一业务数据(3)第三应用向第一应用发送第一标识信息;(4)第一应用向第二应用发送第一标识信息;(5)第二应用根据第一标识信息在第三应用中获取第一业务数据;(6)第二应用向服务器发送第一业务数据。When the first application needs to send data through the second application, because the second application cannot directly obtain the data in the independent storage partition of the first application, the first application first sends the business data to the third application and stores it in the third application in the independent storage partition of the application; then the second application obtains the relevant data stored by the third application. Specifically, the steps include: (1) the first application sends the first business data to the third application; (2) the third application stores the first business data in its independent storage partition, and generates first identification information, the second application One piece of identification information corresponds to the first business data, through which the first business data stored in the independent storage partition of the third application can be accessed. (3) The third application sends the first identification information to the first application; (4) The first application sends the first identification information to the second application; (5) the second application obtains the first service data from the third application according to the first identification information; (6) the second application sends the first service data to the server.
在本申请实施例中,第三应用作为实现数据存储的应用,第二应用可以通过第三应用获取第一应用的业务数据,实现跨进程信息处理。另外,由于第一应用的业务数据存储在第三应用的独立存储分区内,即使第一应用和第二应用均卸载,第一应用的业务数据仍不会丢失。In the embodiment of the present application, the third application is used as an application for implementing data storage, and the second application can obtain the business data of the first application through the third application to realize cross-process information processing. In addition, since the business data of the first application is stored in an independent storage partition of the third application, even if both the first application and the second application are uninstalled, the business data of the first application will not be lost.
参见图3,为本申请实施例提供的一种跨进程信息处理方法流程示意图。该方法与图2所示的应用场景相对应,如图3所示,其主要包括以下步骤。Referring to FIG. 3 , it is a schematic flowchart of a method for processing cross-process information provided by an embodiment of the present application. This method corresponds to the application scenario shown in FIG. 2, and as shown in FIG. 3, it mainly includes the following steps.
步骤S301:第一应用向第三应用发送第一业务数据。Step S301: the first application sends the first service data to the third application.
步骤S301可以由任意方式触发,例如,在S301之前,电子设备接收到一个业务触发操作以触发S301的执行;该业务触发操作可以为一个用户输入,比如一个触摸输入或语音输入;该输入也可以为其他智能设备发送来的消息或指令。Step S301 can be triggered by any means. For example, before S301, the electronic device receives a service trigger operation to trigger the execution of S301; the service trigger operation can be a user input, such as a touch input or voice input; the input can also be For messages or instructions sent by other smart devices.
例如,电子设备为发送端,用户通过第一应用发送业务数据。可理解,第一应用为业务执行应用。该业务触发操作可以理解为用户在第一应用的显示界面内编辑的信息或输入的触发指令。该第一业务数据为与用户的业务触发操作对应的数据。For example, the electronic device is the sending end, and the user sends service data through the first application. It can be understood that the first application is a service execution application. The service triggering operation may be understood as information edited or a triggering instruction input by the user in the display interface of the first application. The first service data is data corresponding to a user's service trigger operation.
参见图4,为本申请实施例提供的一种第一应用的场景示意图。如图4所示,该第一应用为信息业务应用400,用户401可以在信息业务应用的显示界面内编辑信息,该第一业务数据402即用户编辑的信息。具体地,该信息业务应用可以为短消息业务应用或多媒体信息服务(Multimedia Messaging Service,MMS)业务应用。Referring to FIG. 4 , it is a schematic diagram of a scene of a first application provided by an embodiment of the present application. As shown in FIG. 4, the first application is an
当然,第一应用还可以为通话业务应用等其它类型应用,本申请实施例对此不作具体限制。当第一应用为通话业务应用时,用户可以通过该发送端的通话业务应用与接收端的通话业务应用进行通话。Certainly, the first application may also be another type of application such as a call service application, which is not specifically limited in this embodiment of the present application. When the first application is a call service application, the user can communicate with the call service application at the receiving end through the call service application at the sending end.
步骤S302:第三应用存储第一业务数据。Step S302: the third application stores the first business data.
在本申请实施例中,第三应用为实现数据存储的应用,第三应用将第一业务数据存储在其独立存储分区内。可理解,由于第一应用的业务数据存储在第三应用的独立存储分区内,即使第一应用和第二应用均卸载,第一应用的业务数据仍不会丢失。In the embodiment of the present application, the third application is an application for implementing data storage, and the third application stores the first business data in its independent storage partition. It can be understood that since the business data of the first application is stored in an independent storage partition of the third application, even if both the first application and the second application are uninstalled, the business data of the first application will not be lost.
步骤S303:第三应用向第一应用发送第一标识信息。Step S303: the third application sends the first identification information to the first application.
在完成第一业务数据的存储后,第三应用会生成与第一业务数据对应的第一标识信息,并将该第一标识信息发送至第一应用,通过该第一标识信息可以访问第三应用的独立存储分区内存储的第一业务数据。After the storage of the first business data is completed, the third application will generate first identification information corresponding to the first business data, and send the first identification information to the first application, and the third application can access the third application through the first identification information. The first business data stored in the independent storage partition of the application.
具体实现中,该第一标识信息可以为统一资源标识符(Uniform ResourceIdentifier,URI)信息。当然,本领域技术人员还可以采用其它标识信息,本申请实施例对此不作限制。In a specific implementation, the first identification information may be uniform resource identifier (Uniform Resource Identifier, URI) information. Of course, those skilled in the art may also use other identification information, which is not limited in this embodiment of the present application.
步骤S304:第一应用向第二应用发送第一标识信息。Step S304: the first application sends the first identification information to the second application.
可理解,第二应用为向第一应用提供服务的应用。具体地,第一应用在接收到第三应用发送的第一标识信息后,将该第一标识信息发送至第二应用,以便第二应用根据该第一标识信息在第三应用中获取相应业务数据。It can be understood that the second application is an application that provides services to the first application. Specifically, after receiving the first identification information sent by the third application, the first application sends the first identification information to the second application, so that the second application can obtain the corresponding service in the third application according to the first identification information. data.
步骤S305:第二应用根据第一标识信息在第三应用的独立存储分区内获取第一业务数据。Step S305: the second application acquires the first service data in the independent storage partition of the third application according to the first identification information.
由于第一标识信息和第一业务数据具有对应关系,因此,第二应用在接收到第一标识信息后,可以根据该第一标识信息在第三应用的独立存储分区内获取第一业务数据。Since the first identification information has a corresponding relationship with the first service data, after receiving the first identification information, the second application can obtain the first service data in the independent storage partition of the third application according to the first identification information.
步骤S306:第二应用向服务器发送第一业务数据。Step S306: the second application sends the first service data to the server.
第二应用接收到第一业务数据后,将该第一业务数据发送至服务器,以便服务器将该业务数据发送至接收端。After receiving the first service data, the second application sends the first service data to the server, so that the server sends the service data to the receiving end.
在本申请实施例中,第三应用作为实现数据存储的应用,第二应用可以通过第三应用获取第一应用的业务数据,实现跨进程信息处理。另外,由于第一应用的业务数据存储在第三应用的独立存储分区内,即使第一应用和第二应用均卸载,第一应用的业务数据仍不会丢失。In the embodiment of the present application, the third application is used as an application for implementing data storage, and the second application can obtain the business data of the first application through the third application to realize cross-process information processing. In addition, since the business data of the first application is stored in an independent storage partition of the third application, even if both the first application and the second application are uninstalled, the business data of the first application will not be lost.
在上述实施例中,为发送端的跨进程信息处理方法,下面从接收端对本申请实施例提供的跨进程信息处理方法进行说明。In the foregoing embodiments, the cross-process information processing method at the sending end is used. The following describes the cross-process information processing method provided by the embodiment of the present application from the receiving end.
参见图5,为本申请实施例提供的另一种跨进程信息处理方法应用场景示意图。在图5中示出了第一应用、第二应用和第三应用,该第一应用、第二应用和第三应用可以位于同一电子设备,在图5所示的应用场景中,该电子设备为接收端。Referring to FIG. 5 , it is a schematic diagram of an application scenario of another cross-process information processing method provided by the embodiment of the present application. The first application, the second application and the third application are shown in FIG. 5, and the first application, the second application and the third application may be located on the same electronic device. In the application scenario shown in FIG. 5, the electronic device for the receiving end.
当服务器接收到发送端发送的第二业务数据时,将该第二业务数据发送至第三应用,存储在第三应用的独立存储分区内;然后,第一应用获取第三应用存储的相关数据。具体地,包括步骤:(1)服务器接收到发送端发送的第二业务数据后,将第二业务数据发送至第二应用;(2)第二应用向第三应用发送第二业务数据;(3)第三应用将第二业务数据存储在其独立存储分区内;(4)第一应用通过监听者模式监听第三应用的数据变化,并在第三应用中获取第三应用更新的数据,即第二业务数据。When the server receives the second business data sent by the sender, the second business data is sent to the third application and stored in an independent storage partition of the third application; then, the first application obtains the relevant data stored by the third application . Specifically, the steps include: (1) after the server receives the second business data sent by the sender, the server sends the second business data to the second application; (2) the second application sends the second business data to the third application; ( 3) The third application stores the second business data in its independent storage partition; (4) The first application monitors the data changes of the third application through the listener mode, and obtains the updated data of the third application in the third application, That is, the second service data.
在本申请实施例中,当电子设备作为接收端接收到业务数据后,由第二应用将业务数据发送至第三应用,存储在第三应用的独立存储分区内,即使第一应用和第二应用均卸载,第一应用的业务数据仍不会丢失。In this embodiment of the application, when the electronic device receives business data as the receiving end, the second application sends the business data to the third application and stores it in an independent storage partition of the third application, even if the first application and the second application Even if all the applications are uninstalled, the business data of the first application will not be lost.
参见图6,为本申请实施例提供的另一种跨进程信息处理方法流程示意图。该方法与图4所示的应用场景相对应,如图6所示,其主要包括以下步骤。Referring to FIG. 6 , it is a schematic flowchart of another cross-process information processing method provided by the embodiment of the present application. This method corresponds to the application scenario shown in FIG. 4, and as shown in FIG. 6, it mainly includes the following steps.
步骤S601:服务器向第二应用发送第二业务数据。Step S601: the server sends the second service data to the second application.
在本申请实施例中,电子设备为接收端,服务器接收到发送端发送的第二业务数据后,将第二业务数据发送至第二应用。该第二应用可以理解为向第一应用提供服务的应用。In this embodiment of the application, the electronic device is the receiving end, and after receiving the second service data sent by the sending end, the server sends the second service data to the second application. The second application can be understood as an application that provides services to the first application.
需要指出的是,在一种可能的实现方式中,第二应用也可以直接接收其它终端设备发送的第二业务数据,本申请实施例对此不作具体限制。It should be pointed out that, in a possible implementation manner, the second application may also directly receive the second service data sent by other terminal devices, which is not specifically limited in this embodiment of the present application.
步骤S602:第二应用向第三应用发送第二业务数据。Step S602: the second application sends the second service data to the third application.
在本申请实施例中,第三应用为实现数据存储的应用,第二应用接收到第二业务数据后,将第二业务数据发送至第三应用,以便第三应用将该第二业务数据存储在其独立存储分区内。In this embodiment of the application, the third application is an application that implements data storage. After the second application receives the second business data, it sends the second business data to the third application so that the third application can store the second business data. in its own bucket.
步骤S603:第三应用存储第二业务数据。Step S603: the third application stores the second business data.
第三应用接收到第二业务数据后,将第二业务数据存储在其独立存储分区内。After receiving the second service data, the third application stores the second service data in its independent storage partition.
步骤S604:第一应用在第三应用中获取第二业务数据。Step S604: the first application acquires the second service data in the third application.
具体地,第一应用可以监听第三应用的独立存储分区内的数据变化,当第三应用的独立存储分区内存在数据更新时,第三应用请求获取更新的数据。Specifically, the first application may monitor data changes in the independent storage partition of the third application, and when there is data update in the independent storage partition of the third application, the third application requests to acquire updated data.
第一应用获取到第二业务数据后,可以在电子设备中输出第二业务数据,以便用户获取相关信息。After the first application obtains the second service data, it can output the second service data in the electronic device, so that the user can obtain relevant information.
参见图7,为本申请实施例提供的另一种第一应用的场景示意图。如图7所示,该第一应用为信息业务应用400,第二业务数据702为发送端的用户701发送的信息数据。信息业务应用400获取到第二业务数据702后,在信息业务应用400的显示界面内显示该第二业务数据702,以便用户401获取相关信息。Referring to FIG. 7 , it is a schematic diagram of another first application scenario provided by the embodiment of the present application. As shown in FIG. 7, the first application is an
当然,第一应用还可以为通话业务应用等其它类型应用,本申请实施例对此不作具体限制。Certainly, the first application may also be another type of application such as a call service application, which is not specifically limited in this embodiment of the present application.
在本申请实施例中,当电子设备作为接收端接收到业务数据后,由第二应用将业务数据发送至第三应用,存储在第三应用的独立存储分区内,即使第一应用和第二应用均卸载,第一应用的业务数据仍不会丢失。In this embodiment of the application, when the electronic device receives business data as the receiving end, the second application sends the business data to the third application and stores it in an independent storage partition of the third application, even if the first application and the second application Even if all the applications are uninstalled, the business data of the first application will not be lost.
可理解,当电子设备为接收端时,在第二应用接收到服务器发送的第二业务数据后,也可以先将第二业务数据发送至第一应用,然后由第一应用将第二业务数据发送至第三应用进行存储,以下进行详细说明。It can be understood that when the electronic device is the receiving end, after the second application receives the second service data sent by the server, it can also first send the second service data to the first application, and then the first application sends the second service data to the first application. It is sent to the third application for storage, which will be described in detail below.
参见图8,为本申请实施例提供的另一种跨进程信息处理方法应用场景示意图。在图8中示出了第一应用、第二应用和第三应用,该第一应用、第二应用和第三应用可以位于同一电子设备,在图8所示的应用场景中,该电子设备为接收端。Referring to FIG. 8 , it is a schematic diagram of an application scenario of another cross-process information processing method provided by the embodiment of the present application. The first application, the second application and the third application are shown in FIG. 8, and the first application, the second application and the third application may be located on the same electronic device. In the application scenario shown in FIG. 8, the electronic device for the receiving end.
在本申请实施例中,具体包括步骤:(1)服务器在接收到第二业务数据后,将第二业务数据发送至第二应用;(2)第二应用向第一应用发送第二业务数据;(3)第一应用向第三应用发送第二业务数据;(4)第三应用将第二业务数据存储在其独立存储分区内。In the embodiment of the present application, steps are specifically included: (1) after the server receives the second business data, the server sends the second business data to the second application; (2) the second application sends the second business data to the first application (3) The first application sends the second service data to the third application; (4) The third application stores the second service data in its independent storage partition.
也就是说,第二应用接收到服务器发送的第二业务数据后,先将第二业务数据发送至第一应用,然后由第一应用将第二业务数据发送至第三应用进行存储。That is to say, after receiving the second service data sent by the server, the second application first sends the second service data to the first application, and then the first application sends the second service data to the third application for storage.
参见图9,为本申请实施例提供的另一种跨进程信息处理方法流程示意图。该方法与图8所示的应用场景相对应,如图9所示,其主要包括以下步骤。Referring to FIG. 9 , it is a schematic flowchart of another cross-process information processing method provided by the embodiment of the present application. This method corresponds to the application scenario shown in FIG. 8, and as shown in FIG. 9, it mainly includes the following steps.
步骤S901:服务器向第二应用发送第二业务数据。Step S901: the server sends the second service data to the second application.
在本申请实施例中,电子设备为接收端,服务器接收到发送端发送的第二业务数据后,将第二业务数据发送至第二应用。In this embodiment of the application, the electronic device is the receiving end, and after receiving the second service data sent by the sending end, the server sends the second service data to the second application.
需要指出的是,在一种可能的实现方式中,第二应用也可以直接接收其它终端设备发送的第二业务数据,本申请实施例对此不作具体限制。It should be pointed out that, in a possible implementation manner, the second application may also directly receive the second service data sent by other terminal devices, which is not specifically limited in this embodiment of the present application.
步骤S902:第二应用向第一应用发送第二业务数据。Step S902: the second application sends the second service data to the first application.
第二应用在接收到第二业务数据后,直接向第一应用发送第二业务数据。After receiving the second service data, the second application directly sends the second service data to the first application.
步骤S903:第一应用输出第二业务数据。Step S903: the first application outputs the second service data.
第一应用在接收到第二业务数据后,可以将第二业务数据输出。例如,当第一应用为信息业务应用时,在信息业务应用显示界面内显示第二业务数据对应的文本信息。After receiving the second service data, the first application may output the second service data. For example, when the first application is an information service application, text information corresponding to the second service data is displayed in the display interface of the information service application.
步骤S904:第一应用向第三应用发送第二业务数据。Step S904: the first application sends the second service data to the third application.
在本申请实施例中,第一应用接收到第二业务数据,第二业务数据存储在第一应用的缓存中。若不将第二业务数据发送至第三应用存储,当第一应用重启或卸载后,会造成第二业务数据丢失。因此,在本申请实施例中,第一应用接收到第二业务数据后,仍然需要将第二业务数据发送至第三应用存储。In this embodiment of the present application, the first application receives the second service data, and the second service data is stored in the cache of the first application. If the second service data is not sent to the third application storage, the second service data will be lost when the first application is restarted or uninstalled. Therefore, in the embodiment of the present application, after the first application receives the second service data, it still needs to send the second service data to the third application for storage.
步骤S905:第三应用存储第二业务数据。Step S905: the third application stores the second business data.
第三应用接收到第二业务数据后,将第二业务数据存储在其独立存储分区内。After receiving the second service data, the third application stores the second service data in its independent storage partition.
图9所示实施例的具体内容可以参见图6所示实施例的描述,为了表述简洁,在此不再赘述。For specific content of the embodiment shown in FIG. 9 , reference may be made to the description of the embodiment shown in FIG. 6 , and details are not repeated here for brevity.
在一种可能的实现方式中,上述第二应用为RCS服务应用。下面对RCS服务应用的场景进行介绍。RCS是指通信技术类业务和信息技术类业务的融合。通信技术类业务是指传统电信网的各类业务,例如通话业务、短消息业务、多媒体信息服务(MultimediaMessaging Service,MMS)业务等。信息技术类业务是指网际互连协议(InternetProtocol,IP)类的各种业务,例如即时通信(Instant Message,IM);视频和应用共享,如视频监控、信息共享、下载业务;以及互联网业务,如电子邮件、语音邮件等。此外还有信息加工类的业务,如电子商务、信息查询等。RCS是新一代消息服务国际标准,电信运营商据此打造的新一代信息服务平台可以让“信息即平台、用户即客户、手机即应用”成为现实。In a possible implementation manner, the foregoing second application is an RCS service application. The following describes the application scenarios of the RCS service. RCS refers to the integration of communication technology services and information technology services. Communication technology services refer to various services of traditional telecommunication networks, such as call services, short message services, and multimedia messaging services (Multimedia Messaging Service, MMS) services. Information technology services refer to various Internet Protocol (Internet Protocol, IP) services, such as instant messaging (Instant Message, IM); video and application sharing, such as video monitoring, information sharing, downloading services; and Internet services, Such as email, voicemail, etc. In addition, there are information processing services, such as e-commerce, information inquiry and so on. RCS is an international standard for a new generation of messaging services. The new generation of information service platforms built by telecom operators can make "information as a platform, users as customers, and mobile phones as applications" a reality.
参见图10A,为本申请实施例提供的一种RCS功能开关场景示意图。如图10A所示,在RCS信息设置界面1010设有RCS信息开关1011,用户可以通过RCS信息开关1011打开或关闭终端的RCS信息功能。例如,当RCS信息开关1011中的滑块滑向右侧时,终端的RCS信息功能打开(图10A所示的状态);当RCS信息开关1011中的滑块滑向左侧时,终端的RCS信息功能关闭。具体地,当终端的RCS信息功能打开时,用户可以在短信界面默认通过移动网络或无线局域网(Wireless Local Area Networks,WLAN)收发信息,同时支持图片、语音、包含地理位置等多种信息类型,沟通更加便捷。Referring to FIG. 10A , it is a schematic diagram of an RCS function switch scene provided by an embodiment of the present application. As shown in FIG. 10A , an
另外,在RCS信息设置界面1010内还设有已读报告开关1012,用户可以通过已读报告开关1012打开或关闭终端的已读报告功能。例如,当已读报告开关1012中的滑块滑向右侧时,终端的已读报告功能打开(图10A所示的状态);当已读报告开关1012中的滑块滑向左侧时,终端的已读报告功能关闭。In addition, there is also a read
可理解,图10A仅为本申请实施例中的一种示例性描述,并不应当将其作为本申请保护范围的限制。It can be understood that FIG. 10A is only an exemplary description in the embodiment of the present application, and should not be taken as a limitation of the protection scope of the present application.
参见图10B,为本申请实施例提供的一种RCS应用场景示意图。在图10B所示的实施例中,将RCS称为RCS信息。如图10B所示,第一应用为短消息业务应用1020,在短消息业务应用1020中,用户1021可以基于RCS信息与用户1022进行信息交互。其中,该RCS信息可以为文字、图片等信息种类,在短消息业务应用界面默认通过移动网络或WLAN收发信息,沟通更加便捷。具体的交互过程在后面的实施例中进行详细说明。Referring to FIG. 10B , it is a schematic diagram of an RCS application scenario provided by an embodiment of the present application. In the embodiment shown in FIG. 10B , the RCS is referred to as RCS information. As shown in FIG. 10B , the first application is a short
可理解,图10B仅为本申请实施例中的一种示例性描述,并不应当将其作为本申请保护范围的限制。It can be understood that FIG. 10B is only an exemplary description in the embodiment of the present application, and should not be taken as a limitation of the protection scope of the present application.
参见图11,为本申请实施例提供的一种电子设备的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将安卓(Android)系统分为四层,从上至下分别为应用层,框架层,安卓运行时(Android runtime)和系统库,以及内核层。其中,安卓运行时和系统库,以及内核层在图中未示出。Referring to FIG. 11 , it is a software structural block diagram of an electronic device provided by an embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom are application layer, framework layer, Android runtime (Android runtime) and system library, and kernel layer. Wherein, the Android runtime, the system library, and the kernel layer are not shown in the figure.
应用层(Application,App)可以包括一系列应用程序包。如图11所示,应用程序包可以包括多媒体信息服务应用、电话簿应用、通话业务应用等。另外,应用层又可以分为界面、逻辑和数据三个模块,各模块之间通过软件接口通信。其中,界面模块用于信息展示,以供用户交互;逻辑模块用于信息处理;数据模块用于数据的存储。The application layer (Application, App) may include a series of application packages. As shown in FIG. 11 , the application program package may include multimedia information service applications, phonebook applications, call service applications, and the like. In addition, the application layer can be divided into three modules: interface, logic and data, and each module communicates through a software interface. Among them, the interface module is used for information display for user interaction; the logic module is used for information processing; the data module is used for data storage.
具体地,在界面模块示出的应用对应于上述实施例中的第一应用,例如可以包括多媒体信息服务(Multimedia Messaging Service,MMS)、电话簿(Contacts)和通话业务(IncallUI)等,其中,IncallUI主要用于通话界面的显示和更新,通话信息的查询,以及简单的逻辑,例如,接听/挂断等。Specifically, the application shown in the interface module corresponds to the first application in the above embodiment, and may include, for example, a multimedia messaging service (Multimedia Messaging Service, MMS), a phone book (Contacts), and a call service (IncallUI), etc., wherein, IncallUI is mainly used for displaying and updating the call interface, querying call information, and simple logic, such as answering/hanging up, etc.
逻辑模块对应于上述实施例中的第二应用,例如可以包括RCS服务。The logic module corresponds to the second application in the foregoing embodiments, and may include RCS services, for example.
数据模块对应于上述实施例中的第三应用,用于进行业务数据的存储。为了对不同业务数据分别存储,数据模块中包括电话簿提供者(ContactsProvider)、通话记录提供者(CallLogProvider)以及信息内容提供者(TelephonyProvider)。其中,ContactsProvider用于存储电话薄应用对应的业务数据;CallLogProvider用于存储通话业务应用对应的业务数据;TelephonyProvider用于存储多媒体信息服务应用对应的业务数据。The data module corresponds to the third application in the above embodiment, and is used for storing business data. In order to store different business data separately, the data module includes a phonebook provider (ContactsProvider), a call record provider (CallLogProvider) and an information content provider (TelephonyProvider). Among them, the ContactsProvider is used to store the service data corresponding to the phonebook application; the CallLogProvider is used to store the service data corresponding to the call service application; the TelephonyProvider is used to store the service data corresponding to the multimedia information service application.
框架层(Framework,FWK)为应用层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图11所示,框架层包括内容提供者(ContentProvider)和内容解析器(ContentResolver)。其中,应用层的ContactsProvider、CallLogProvider和TelephonyProvider基于框架层的ContentProvider来实现。The framework layer (Framework, FWK) provides an application programming interface (application programming interface, API) and a programming framework for the application program of the application layer. The application framework layer includes some predefined functions. As shown in Figure 11, the framework layer includes a content provider (ContentProvider) and a content resolver (ContentResolver). Among them, the ContactsProvider, CallLogProvider and TelephonyProvider of the application layer are implemented based on the ContentProvider of the framework layer.
ContentProvider是Android中的四大组件之一,主要用于对外共享数据,也就是通过ContentProvider把应用中的数据共享给其他应用访问,其他应用可以通过ContentProvider对指定应用中的数据进行操作。当外部应用需要对ContentProvider中的数据进行添加、删除、修改和查询操作时,可以使用ContentResolver来完成。ContentProvider is one of the four major components in Android. It is mainly used for external data sharing, that is, the data in the application is shared with other applications through the ContentProvider. Other applications can operate on the data in the specified application through the ContentProvider. When the external application needs to add, delete, modify and query the data in the ContentProvider, it can use the ContentResolver to complete it.
以通话业务应用为例,用户可以在通话业务应用的界面触发数据模块的访问请求,通话业务应用将该访问请求发送至ContentResolver,ContentResolver对该访问请求进行解析,并通过ContentProvider访问数据模块中的对应单元。由于该应用为通话业务应用,因此,ContentResolver对该访问请求进行解析后,确认该访问请求对应于数据模块中的CallLogProvider,因此通过ContentProvider访问数据模块中的CallLogProvider。具体地,可以将通话业务应用对应的业务数据存储在CallLogProvider对应的独立存储分区内,或者在CallLogProvider对应的独立存储分区获取通话业务应用对应的业务数据。Taking the call service application as an example, the user can trigger the access request of the data module on the interface of the call service application, and the call service application sends the access request to the ContentResolver, and the ContentResolver parses the access request, and accesses the corresponding data module through the ContentProvider. unit. Since the application is a call service application, after the ContentResolver parses the access request, it confirms that the access request corresponds to the CallLogProvider in the data module, and therefore accesses the CallLogProvider in the data module through the ContentProvider. Specifically, the service data corresponding to the call service application may be stored in an independent storage partition corresponding to the CallLogProvider, or the service data corresponding to the call service application may be obtained from the independent storage partition corresponding to the CallLogProvider.
参见图12,为本申请实施例提供的另一种跨进程信息处理方法流程示意图。在本申请实施例中,第一应用为多媒体信息服务应用,第二应用为RCS服务应用,第三应用为Android系统中的信息内容提供者。该方法可应用于图11中的软件架构,如图12所示,其主要包括以下步骤。Referring to FIG. 12 , it is a schematic flowchart of another cross-process information processing method provided by the embodiment of the present application. In the embodiment of the present application, the first application is a multimedia information service application, the second application is an RCS service application, and the third application is an information content provider in the Android system. The method can be applied to the software architecture in FIG. 11 , and as shown in FIG. 12 , it mainly includes the following steps.
步骤S1201:响应于用户的编辑信息操作,多媒体信息服务应用向信息内容提供者发送第一信息数据。Step S1201: In response to the user's operation of editing information, the multimedia information service application sends the first information data to the information content provider.
用户可以在多媒体信息服务应用的显示界面内编辑信息,多媒体信息服务应用根据用户编辑的信息向信息内容提供者发送第一信息数据。可理解,该第一信息数据即用户编辑的信息。The user can edit information in the display interface of the multimedia information service application, and the multimedia information service application sends the first information data to the information content provider according to the information edited by the user. It can be understood that the first information data is the information edited by the user.
具体地,该第一信息数据可以为文本类信息、图片类信息等。例如,图7所示的实施例中的第一业务数据402即文本类信息。Specifically, the first information data may be text-type information, picture-type information, and the like. For example, the
步骤S1202:信息内容提供者存储第一信息数据,生成第一标识信息。Step S1202: the information content provider stores the first information data and generates first identification information.
信息内容提供者为实现数据存储的应用,信息内容提供者将第一信息数据存储在其独立存储分区内。可理解,由于多媒体信息服务应用的信息数据存储在信息内容提供者的独立存储分区内,即使多媒体信息服务应用和RCS服务应用均卸载,多媒体信息服务应用的信息数据仍不会丢失。In order to realize the application of data storage, the information content provider stores the first information data in its independent storage partition. It can be understood that since the information data of the multimedia information service application is stored in an independent storage partition of the information content provider, even if both the multimedia information service application and the RCS service application are uninstalled, the information data of the multimedia information service application will not be lost.
在完成第一信息数据的存储后,信息内容提供者会生成与第一信息数据对应的第一标识信息,通过该第一标识信息可以访问信息内容提供者的独立存储分区内存储的第一信息数据。After the storage of the first information data is completed, the information content provider will generate first identification information corresponding to the first information data, through which the first information stored in the independent storage partition of the information content provider can be accessed data.
具体实现中,该第一标识信息可以为统一资源标识符(Uniform ResourceIdentifier,URI)信息。当然,本领域技术人员还可以采用其它标识信息,本申请实施例对此不作限制。In a specific implementation, the first identification information may be uniform resource identifier (Uniform Resource Identifier, URI) information. Of course, those skilled in the art may also use other identification information, which is not limited in this embodiment of the present application.
步骤S1203:信息内容提供者向多媒体信息服务应用发送第一标识信息。Step S1203: the information content provider sends the first identification information to the multimedia information service application.
信息内容提供者在生成第一标识信息后,将该第一标识信息发送至多媒体信息服务应用。After generating the first identification information, the information content provider sends the first identification information to the multimedia information service application.
具体地,上述步骤S1202中的生成第一标识信息,以及步骤S1203中向多媒体信息服务应用发送第一标识信息,可以调用架构层的ContentResolver实现。Specifically, the generation of the first identification information in step S1202 and the sending of the first identification information to the multimedia information service application in step S1203 may be implemented by calling the ContentResolver of the architecture layer.
步骤S1204:多媒体信息服务应用向RCS服务应用发送第一标识信息。Step S1204: the multimedia information service application sends the first identification information to the RCS service application.
多媒体信息服务应用在接收到信息内容提供者发送的第一标识信息后,将该第一标识信息发送至RCS服务应用,以便RCS服务应用根据该第一标识信息在信息内容提供者中获取相应信息数据。After receiving the first identification information sent by the information content provider, the multimedia information service application sends the first identification information to the RCS service application, so that the RCS service application obtains corresponding information from the information content provider according to the first identification information data.
步骤S1205:RCS服务应用根据第一标识信息在信息内容提供者中获取第一信息数据。Step S1205: The RCS service application obtains the first information data from the information content provider according to the first identification information.
由于第一标识信息和第一信息数据具有对应关系,因此,RCS服务应用在接收到第一标识信息后,可以根据该第一标识信息在信息内容提供者的独立存储分区内获取第一信息数据。Since the first identification information has a corresponding relationship with the first information data, after receiving the first identification information, the RCS service application can obtain the first information data in the independent storage partition of the information content provider according to the first identification information .
具体地,该过程可以调用架构层的ContentResolver实现。Specifically, this process may call the implementation of ContentResolver at the architecture layer.
步骤S1206:RCS服务应用向服务器发送第一信息数据。Step S1206: The RCS service application sends the first information data to the server.
RCS服务应用接收到第一信息数据后,将该第一信息数据发送至服务器,以便服务器将该信息数据发送至接收端。After receiving the first information data, the RCS service application sends the first information data to the server, so that the server sends the information data to the receiving end.
步骤S1207:服务器接收第二信息数据。Step S1207: the server receives the second information data.
当该电子设备为接收端时,可以接收服务器发送的第二信息数据。When the electronic device is the receiving end, it can receive the second information data sent by the server.
步骤S1208:服务器向RCS服务应用发送第二信息数据。Step S1208: the server sends the second information data to the RCS service application.
在本申请实施例中,服务器接收到第二信息数据后,将第二信息数据发送至RCS服务应用。In the embodiment of the present application, after receiving the second information data, the server sends the second information data to the RCS service application.
步骤S1209:RCS服务应用向信息内容提供者发送第二信息数据。Step S1209: The RCS service application sends the second information data to the information content provider.
RCS服务应用接收到第二信息数据后,将第二信息数据发送至信息内容提供者,以便信息内容提供者将该第二信息数据存在其独立存储分区内。After receiving the second information data, the RCS service application sends the second information data to the information content provider, so that the information content provider stores the second information data in its independent storage partition.
步骤S1210:信息内容提供者存储第二信息数据。Step S1210: the information content provider stores the second information data.
信息内容提供者接收到第二信息数据后,将第二信息数据存在其独立存储分区内。可理解,信息内容提供者在完成第二信息数据的存储后可以生成与该第二信息数据对应的第二标识信息。After receiving the second information data, the information content provider stores the second information data in its independent storage partition. It can be understood that the information content provider may generate the second identification information corresponding to the second information data after completing the storage of the second information data.
具体地,该过程可以调用架构层的ContentResolver实现。Specifically, this process may call the implementation of ContentResolver at the architecture layer.
步骤S1211:多媒体信息服务应用监听信息内容提供者的数据变化,获取信息内容提供者更新的第二信息数据。Step S1211: The multimedia information service application monitors the data change of the information content provider, and acquires the updated second information data of the information content provider.
在一种可能的实现方式中,多媒体信息服务应用可以采用监听者模式实时监听信息内容提供者的数据变化,当信息内容提供者内存在数据更新时,多媒体信息服务应用请求获取更新的数据,并在多媒体信息服务应用的显示界面内显示更新的数据,即第二信息数据。例如,图7所示的实施例中的第二业务数据702。In a possible implementation, the multimedia information service application can use the listener mode to monitor the data changes of the information content provider in real time. When there is data update in the information content provider, the multimedia information service application requests to obtain the updated data, and The updated data, that is, the second information data is displayed in the display interface of the multimedia information service application. For example, the
在本申请实施例中,信息内容提供者作为实现数据存储的应用,RCS服务应用可以通过信息内容提供者获取多媒体信息服务应用的业务数据,实现RCS功能。由多媒体信息服务应用的信息数据存储在信息内容提供者的独立存储分区内,因此,即使多媒体信息服务应用和RCS服务应用均卸载,多媒体信息服务应用的信息数据仍不会丢失。In the embodiment of the present application, the information content provider serves as an application implementing data storage, and the RCS service application can obtain the service data of the multimedia information service application through the information content provider to realize the RCS function. The information data of the multimedia information service application is stored in the independent storage partition of the information content provider. Therefore, even if both the multimedia information service application and the RCS service application are uninstalled, the information data of the multimedia information service application will not be lost.
参见图13,为本申请实施例提供的另一种跨进程信息处理方法流程示意图。在本申请实施例中,第一应用为通话业务应用,第二应用为RCS服务应用,第三应用为Android系统中的通话记录提供者。该方法可应用于图11中的软件架构,如图13所示,其主要包括以下步骤。Referring to FIG. 13 , it is a schematic flowchart of another cross-process information processing method provided by the embodiment of the present application. In this embodiment of the application, the first application is a call service application, the second application is an RCS service application, and the third application is a call record provider in the Android system. The method can be applied to the software architecture in FIG. 11 , and as shown in FIG. 13 , it mainly includes the following steps.
步骤S1301:在电话簿应用触发通话呼叫操作。Step S1301: Trigger a call operation in the phonebook application.
在本申请实施例中,第一业务数据为通话前交互文件,用户可以在触发通话呼叫操作前,在电话簿应用界面编辑通话前交互文件,以便用户在触发通话呼叫操作时,发送该通话前交互文件;该通话前交互文件可以为文本类信息、图片类信息、共享信息(例如,共享地理位置)、重要等级标识等,本申请实施例对其不作具体限制。In this embodiment of the application, the first service data is the pre-call interaction file, and the user can edit the pre-call interaction file on the phone book application interface before triggering the call operation, so that the user can send the pre-call interaction file when the call operation is triggered. Interaction file; the pre-call interaction file may be text information, picture information, shared information (for example, shared geographic location), importance level identification, etc., which are not specifically limited in the embodiment of the present application.
步骤S1302:通话业务应用向通话记录提供者发送通话前交互文件。Step S1302: the call service application sends the pre-call interaction file to the call record provider.
通话业务应用接收到用户的触发通话呼叫操作后,向通话记录提供者发送通话前交互文件。After the call service application receives the user's trigger call operation, it sends the pre-call interaction file to the call record provider.
步骤S1303:通话记录提供者存储通话前交互文件,生成第一标识信息。Step S1303: The call record provider stores the pre-call interaction file and generates first identification information.
通话记录提供者为实现数据存储的应用,通话记录提供者将通话前交互文件存储在其独立存储分区内。可理解,由于通话业务应用的通话前交互文件存储在通话记录提供者的独立存储分区内,即使通话业务应用和RCS服务应用均卸载,通话业务应用的通话前交互文件仍不会丢失。The call record provider is an application for data storage, and the call record provider stores the pre-call interaction files in its independent storage partition. It can be understood that since the pre-call interaction files of the call service application are stored in an independent storage partition of the call record provider, even if both the call service application and the RCS service application are uninstalled, the pre-call interaction files of the call service application will not be lost.
在完成通话前交互文件的存储后,通话记录提供者会生成与通话前交互文件对应的第一标识信息,通过该第一标识信息可以访问通话记录提供者的独立存储分区内存储的通话前交互文件。After completing the storage of the pre-call interaction file, the call record provider will generate first identification information corresponding to the pre-call interaction file, through which the pre-call interaction stored in the independent storage partition of the call record provider can be accessed document.
具体实现中,该第一标识信息可以为统一资源标识符(Uniform ResourceIdentifier,URI)信息。当然,本领域技术人员还可以采用其它标识信息,本申请实施例对此不作限制。In a specific implementation, the first identification information may be uniform resource identifier (Uniform Resource Identifier, URI) information. Of course, those skilled in the art may also use other identification information, which is not limited in this embodiment of the present application.
步骤S1304:通话记录提供者向通话业务应用发送第一标识信息。Step S1304: The call record provider sends the first identification information to the call service application.
通话记录提供者在生成第一标识信息后,将该第一标识信息发送至通话业务应用。After the call record provider generates the first identification information, it sends the first identification information to the call service application.
具体地,上述步骤S1303中的生成第一标识信息,以及步骤S1304中向通话业务应用发送第一标识信息,可以调用架构层的ContentResolver实现。Specifically, the generation of the first identification information in step S1303 and the sending of the first identification information to the call service application in step S1304 may be implemented by calling the ContentResolver of the architecture layer.
步骤S1305:通话业务应用向RCS服务应用发送第一标识信息。Step S1305: the call service application sends the first identification information to the RCS service application.
通话业务应用接收到通话记录提供者发送的第一标识信息后,将该第一标识信息发送至RCS服务应用,以便RCS服务应用根据该第一标识信息在通话记录提供者中获取相应信息数据。After receiving the first identification information sent by the call record provider, the call service application sends the first identification information to the RCS service application, so that the RCS service application obtains corresponding information data from the call record provider according to the first identification information.
步骤S1306:RCS服务应用根据第一标识信息在通话记录提供者中获取通话前交互文件。Step S1306: The RCS service application obtains the pre-call interaction file from the call record provider according to the first identification information.
由于第一标识信息和通话前交互文件具有对应关系,因此,RCS服务应用在接收到第一标识信息后,可以根据该第一标识信息在通话记录提供者的独立存储分区内获取通话前交互文件。Since the first identification information has a corresponding relationship with the pre-call interaction file, after receiving the first identification information, the RCS service application can obtain the pre-call interaction file in the independent storage partition of the call record provider according to the first identification information .
具体地,该过程可以调用架构层的ContentResolver实现。Specifically, this process may call the implementation of ContentResolver at the architecture layer.
步骤S1307:RCS服务应用向服务器发送通话前交互文件。Step S1307: The RCS service application sends the pre-call interaction file to the server.
RCS服务应用接收到通话前交互文件后,将该通话前交互文件发送至服务器,以便服务器将该通话前交互文件发送至接收端。After receiving the pre-call interaction file, the RCS service application sends the pre-call interaction file to the server, so that the server sends the pre-call interaction file to the receiving end.
在本申请实施例中,用户在通话前编辑通话前交互文件,用户在触发通话呼叫操作后,首先将通话前交互文件发送至呼出对象,以便呼出对象查阅相关信息。In this embodiment of the application, the user edits the pre-call interaction file before making a call, and after triggering the call operation, the user first sends the pre-call interaction file to the caller, so that the caller can consult relevant information.
在另一种应用场景中,用户在接收到来电后,可能不方便接听电话,可以直接触发通话挂断操作,然后编辑通话挂断后交互文件。参见图14,为本申请实施例提供的另一种跨进程信息处理方法流程示意图。本申请实施例对通话挂断后交互文件的处理过程进一步说明。如图14所示,其主要包括以下步骤。In another application scenario, it may be inconvenient for the user to answer the call after receiving an incoming call, so the user can directly trigger the call hangup operation, and then edit the interaction file after the call is hung up. Referring to FIG. 14 , it is a schematic flowchart of another cross-process information processing method provided by the embodiment of the present application. The embodiment of the present application further explains the processing process of the interactive file after the call is hung up. As shown in Figure 14, it mainly includes the following steps.
步骤S1401:用户在接收到来电后,触发通话挂断操作,编辑通话挂断后交互文件。Step S1401: After receiving an incoming call, the user triggers a call hangup operation, and edits the interaction file after the call is hung up.
在本申请实施例中,第一业务数据为通话挂断后交互文件,在接收到来电后,可能不方便接听电话。此时,可以不接听来电,直接触发通话挂断操作,然后编辑通话挂断后交互文件。该通话挂断后交互文件可以为文本类信息、图片类信息、共享信息(例如,共享地理位置)、重要等级标识等,本申请实施例对其不作具体限制。In this embodiment of the application, the first service data is an interaction file after a call is hung up, and it may be inconvenient to answer a call after receiving an incoming call. At this point, you can directly trigger the call hangup operation without answering the call, and then edit the interaction file after the call is hung up. The interaction file after the call is hung up may be text information, picture information, shared information (for example, shared geographic location), importance level identification, etc., which are not specifically limited in this embodiment of the present application.
步骤S1402:通话业务应用向通话记录提供者发送通话挂断后交互文件。Step S1402: The call service application sends the interaction file after the call is hung up to the call record provider.
用户在通话业务应用中完成通话挂断后交互文件的编辑后,通话业务应用向通话记录提供者发送通话挂断后交互文件。After the user finishes editing the post-call hangup interaction file in the call service application, the call service application sends the post-call hangup interaction file to the call record provider.
步骤S1403:通话记录提供者存储通话挂断后交互文件,生成第一标识信息。Step S1403: The call record provider stores the interaction file after the call is hung up, and generates first identification information.
通话记录提供者为实现数据存储的应用,通话记录提供者将通话挂断后交互文件存储在其独立存储分区内。可理解,由于通话业务应用的通话挂断后交互文件存储在通话记录提供者的独立存储分区内,即使通话业务应用和RCS服务应用均卸载,通话业务应用的通话挂断后交互文件仍不会丢失。The call record provider is an application for data storage. The call record provider stores the interaction files after the call is hung up in its independent storage partition. It can be understood that since the call service application hangs up the interaction file is stored in the independent storage partition of the call record provider, even if the call service application and the RCS service application are both uninstalled, the call service application hangs up the interaction file. lost.
在完成通话挂断后交互文件的存储后,通话记录提供者会生成与通话挂断后交互文件对应的第一标识信息,通过该第一标识信息可以访问通话记录提供者的独立存储分区内存储的通话挂断后交互文件。After completing the storage of the interaction file after the call is hung up, the call record provider will generate the first identification information corresponding to the interaction file after the call is hung up, through which the first identification information can be used to access the storage in the independent storage partition of the call record provider The interactive file after the call hangs up.
具体实现中,该第一标识信息可以为统一资源标识符(Uniform ResourceIdentifier,URI)信息。当然,本领域技术人员还可以采用其它标识信息,本申请实施例对此不作限制。In a specific implementation, the first identification information may be uniform resource identifier (Uniform Resource Identifier, URI) information. Of course, those skilled in the art may also use other identification information, which is not limited in this embodiment of the present application.
步骤S1404:通话记录提供者向通话业务应用发送第一标识信息。Step S1404: the call record provider sends the first identification information to the call service application.
通话记录提供者在生成第一标识信息后,将该第一标识信息发送至通话业务应用。After the call record provider generates the first identification information, it sends the first identification information to the call service application.
具体地,上述步骤S1403中的生成第一标识信息,以及步骤S1404中向通话业务应用发送第一标识信息,可以调用架构层的ContentResolver实现。Specifically, the generation of the first identification information in step S1403 and the sending of the first identification information to the call service application in step S1404 may be implemented by calling the ContentResolver of the architecture layer.
步骤S1405:通话业务应用向RCS服务应用发送第一标识信息。Step S1405: the call service application sends the first identification information to the RCS service application.
通话业务应用接收到通话记录提供者发送的第一标识信息后,将该第一标识信息发送至RCS服务应用,以便RCS服务应用根据该第一标识信息在通话记录提供者中获取相应信息数据。After receiving the first identification information sent by the call record provider, the call service application sends the first identification information to the RCS service application, so that the RCS service application obtains corresponding information data from the call record provider according to the first identification information.
步骤S1406:RCS服务应用根据第一标识信息在通话记录提供者中获取通话挂断后交互文件。Step S1406: The RCS service application obtains the interaction file after the call is hung up from the call record provider according to the first identification information.
由于第一标识信息和通话挂断后交互文件具有对应关系,因此,RCS服务应用在接收到第一标识信息后,可以根据该第一标识信息在通话记录提供者的独立存储分区内获取通话挂断后交互文件。Since the first identification information has a corresponding relationship with the interaction file after the call is hung up, after receiving the first identification information, the RCS service application can acquire the Post-break interactive files.
具体地,该过程可以调用架构层的ContentResolver实现。Specifically, this process may call the implementation of ContentResolver at the architecture layer.
步骤S1407:RCS服务应用向服务器发送通话挂断后交互文件。Step S1407: The RCS service application sends the interaction file after the call is hung up to the server.
RCS服务应用接收到通话挂断后交互文件后,将该通话挂断后交互文件发送至服务器,以便服务器将该通话挂断后交互文件发送至接收端。After the RCS service application receives the hang-up interaction file, it sends the hang-up interaction file to the server, so that the server sends the hang-up interaction file to the receiving end.
在本申请实施例中,用户可以在通话过程中编辑通话挂断后交互文件,实时将通话挂断后交互文件发送至呼出对象,以便呼出对象查阅相关信息。In this embodiment of the application, the user can edit the interaction file after the call is hung up during the call, and send the interaction file after the call is hung up to the caller in real time, so that the caller can consult relevant information.
基于同样的原理,呼出对象同样可以在通话过程中编辑通话挂断后交互文件,实时将其编辑的通话挂断后交互文件发送至本用户。本用户接收呼出对象发送通话挂断后交互文件的过程可以参见上述实施例中第二业务数据的接收过程,为了表述简洁,在此不再赘述。Based on the same principle, the caller can also edit the hangup interaction file during the call, and send the edited hangup interaction file to the user in real time. For the process of the user receiving the caller to send the interactive file after the call is hung up, refer to the process of receiving the second service data in the above embodiment, and for the sake of brevity, details are not repeated here.
另外,除了通话前交互文件和通话挂断后交互文件外,用户还可以在通话过程中编辑通话过程中交互文件,在通话过程中实时将该通话过程中交互文件发送至接收方,具体过程可以参见上述实施例的描述,在此不再赘述。In addition, in addition to the interactive files before the call and the interactive files after the call is hung up, the user can also edit the interactive files during the call during the call, and send the interactive files during the call to the receiver in real time during the call. The specific process can be Refer to the description of the foregoing embodiments, and details are not repeated here.
参见图15,为本申请实施例提供的一种通话业务应用的场景示意图。如图15所示,在通话界面1500中包括用户1501和用户1503,用户1501可以在通话前,向用户1503发送通话前交互文件1502,该通话前交互文件1502为用户1501分享的地理位置信息。在通话过程中,用户1503可以向用户1501实时发送通话过程中交互文件1504,该通话过程中交互文件1504为用户1503在通话过程中发送的文本类信息。Referring to FIG. 15 , it is a schematic diagram of a scenario of a call service application provided by an embodiment of the present application. As shown in FIG. 15 , the
可理解,图15所示应用场景仅为一种示例性描述,并不应当向其作为本申请保护范围的限制。It can be understood that the application scenario shown in FIG. 15 is only an exemplary description, and should not be taken as a limitation of the protection scope of the present application.
与上述方法实施例相对应,本申请还提供了一种电子设备,该电子设备包括一个或多个处理器;存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行上述方法实施例中的部分或全部步骤。Corresponding to the above method embodiments, the present application also provides an electronic device, which includes one or more processors; memory; and one or more computer programs, wherein the one or more computer programs are stored In the memory, the one or more computer programs include instructions, which, when executed by the electronic device, cause the electronic device to perform some or all of the steps in the above method embodiments.
参见图16,为本申请实施例提供的一种电子设备的结构示意图。如图16所示,该电子设备1600可以包括处理器1610,外部存储器接口1620,内部存储器1621,通用串行总线(universal serial bus,USB)接口1630,充电管理模块1640,电源管理模块1641,电池1642,天线1,天线2,移动通信模块1650,无线通信模块1660,音频模块1670,扬声器1670A,受话器1670B,麦克风1670C,耳机接口1670D,传感器模块1680,按键1690,马达1691,指示器1692,摄像头1693,显示屏1694,以及用户标识模块(subscriber identification module,SIM)卡接口1695等。其中传感器模块1680可以包括压力传感器1680A,陀螺仪传感器1680B,气压传感器1680C,磁传感器1680D,加速度传感器1680E,距离传感器1680F,接近光传感器1680G,指纹传感器1680H,温度传感器1680J,触摸传感器1680K,环境光传感器1680L,骨传导传感器1680M等。Referring to FIG. 16 , it is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 16, the electronic device 1600 may include a
可以理解的是,本发明实施例示意的结构并不构成对电子设备1600的具体限定。在本申请另一些实施例中,电子设备1600可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure shown in the embodiment of the present invention does not constitute a specific limitation on the electronic device 1600 . In some other embodiments of the present application, the electronic device 1600 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器1610可以包括一个或多个处理单元,例如:处理器1610可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器1610中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器1610中的存储器为高速缓冲存储器。该存储器可以保存处理器1610刚用过或循环使用的指令或数据。如果处理器1610需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器1610的等待时间,因而提高了系统的效率。A memory may also be provided in the
在一些实施例中,处理器1610可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I16C)接口,集成电路内置音频(inter-integrated circuitsound,I16S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments,
I16C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器1610可以包含多组I16C总线。处理器1610可以通过不同的I16C总线接口分别耦合触摸传感器1680K,充电器,闪光灯,摄像头1693等。例如:处理器1610可以通过I16C接口耦合触摸传感器1680K,使处理器1610与触摸传感器1680K通过I16C总线接口通信,实现电子设备1600的触摸功能。The I16C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments,
I16S接口可以用于音频通信。在一些实施例中,处理器1610可以包含多组I16S总线。处理器1610可以通过I16S总线与音频模块1670耦合,实现处理器1610与音频模块1670之间的通信。在一些实施例中,音频模块1670可以通过I16S接口向无线通信模块1660传递音频信号,实现通过蓝牙耳机接听电话的功能。The I16S interface can be used for audio communication. In some embodiments,
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块1670与无线通信模块1660可以通过PCM总线接口耦合。在一些实施例中,音频模块1670也可以通过PCM接口向无线通信模块1660传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I16S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器1610与无线通信模块1660。例如:处理器1610通过UART接口与无线通信模块1660中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块1670可以通过UART接口向无线通信模块1660传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the
MIPI接口可以被用于连接处理器1610与显示屏1694,摄像头1693等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器1610和摄像头1693通过CSI接口通信,实现电子设备1600的拍摄功能。处理器1610和显示屏1694通过DSI接口通信,实现电子设备1600的显示功能。The MIPI interface can be used to connect the
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器1610与摄像头1693,显示屏1694,无线通信模块1660,音频模块1670,传感器模块1680等。GPIO接口还可以被配置为I16C接口,I16S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the
USB接口1630是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口1630可以用于连接充电器为电子设备1600充电,也可以用于电子设备1600与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 1630 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 1630 can be used to connect a charger to charge the electronic device 1600, and can also be used to transmit data between the electronic device 1600 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备1600的结构限定。在本申请另一些实施例中,电子设备1600也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 1600 . In other embodiments of the present application, the electronic device 1600 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块1640用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块1640可以通过USB接口1630接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块1640可以通过电子设备1600的无线充电线圈接收无线充电输入。充电管理模块1640为电池1642充电的同时,还可以通过电源管理模块1641为电子设备供电。The
电源管理模块1641用于连接电池1642,充电管理模块1640与处理器1610。电源管理模块1641接收电池1642和/或充电管理模块1640的输入,为处理器1610,内部存储器1621,显示屏1694,摄像头1693,和无线通信模块1660等供电。电源管理模块1641还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块1641也可以设置于处理器1610中。在另一些实施例中,电源管理模块1641和充电管理模块1640也可以设置于同一个器件中。The power management module 1641 is used for connecting the battery 1642 , the
电子设备1600的无线通信功能可以通过天线1,天线2,移动通信模块1650,无线通信模块1660,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 1600 can be realized by the
天线1和天线2用于发射和接收电磁波信号。电子设备1600中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块1650可以提供应用在电子设备1600上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块1650可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块1650可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块1650还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块1650的至少部分功能模块可以被设置于处理器1610中。在一些实施例中,移动通信模块1650的至少部分功能模块可以与处理器1610的至少部分模块被设置在同一个器件中。The
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器1670A,受话器1670B等)输出声音信号,或通过显示屏1694显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器1610,与移动通信模块1650或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to
无线通信模块1660可以提供应用在电子设备1600上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块1660可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块1660经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器1610。无线通信模块1660还可以从处理器1610接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 1660 can provide wireless local area network (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. applied on the electronic device 1600 (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 1660 may be one or more devices integrating at least one communication processing module. The wireless communication module 1660 receives electromagnetic waves via the
在一些实施例中,电子设备1600的天线1和移动通信模块1650耦合,天线2和无线通信模块1660耦合,使得电子设备1600可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobilecommunications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband codedivision multiple access,WCDMA),时分码分多址(time-division code divisionmultiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenithsatellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the
电子设备1600通过GPU,显示屏1694,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏1694和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器1610可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 1600 implements a display function through a GPU, a display screen 1694, and an application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 1694 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏1694用于显示图像,视频等。显示屏1694包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备1600可以包括1个或N个显示屏1694,N为大于1的正整数。The display screen 1694 is used to display images, videos and the like. Display 1694 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light emitting diode). AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 1600 may include 1 or N display screens 1694, where N is a positive integer greater than 1.
电子设备1600可以通过ISP,摄像头1693,视频编解码器,GPU,显示屏1694以及应用处理器等实现拍摄功能。The electronic device 1600 can realize the shooting function through the ISP, the camera 1693 , the video codec, the GPU, the display screen 1694 and the application processor.
ISP用于处理摄像头1693反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头1693中。The ISP is used to process the data fed back by the camera 1693. For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 1693.
摄像头1693用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备1600可以包括1个或N个摄像头1693,N为大于1的正整数。Camera 1693 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 1600 may include 1 or N cameras 1693, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备1600在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 1600 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备1600可以支持一种或多种视频编解码器。这样,电子设备1600可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 1600 may support one or more video codecs. In this way, the electronic device 1600 can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备1600的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 1600 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口1620可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备1600的存储能力。外部存储卡通过外部存储器接口1620与处理器1610通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The
内部存储器1621可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器1621可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备1600使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器1621可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器1610通过运行存储在内部存储器1621的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备1600的各种功能应用以及数据处理。The internal memory 1621 may be used to store computer-executable program codes including instructions. The internal memory 1621 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data (such as audio data, phonebook, etc.) created during the use of the electronic device 1600 . In addition, the internal memory 1621 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The
电子设备1600可以通过音频模块1670,扬声器1670A,受话器1670B,麦克风1670C,耳机接口1670D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 1600 may implement an audio function through an
音频模块1670用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块1670还可以用于对音频信号编码和解码。在一些实施例中,音频模块1670可以设置于处理器1610中,或将音频模块1670的部分功能模块设置于处理器1610中。The
扬声器1670A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备1600可以通过扬声器1670A收听音乐,或收听免提通话。
受话器1670B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备1600接听电话或语音信息时,可以通过将受话器1670B靠近人耳接听语音。
麦克风1670C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风1670C发声,将声音信号输入到麦克风1670C。电子设备1600可以设置至少一个麦克风1670C。在另一些实施例中,电子设备1600可以设置两个麦克风1670C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备1600还可以设置三个,四个或更多麦克风1670C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口1670D用于连接有线耳机。耳机接口1670D可以是USB接口1630,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The
压力传感器1680A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器1680A可以设置于显示屏1694。压力传感器1680A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器1680A,电极之间的电容改变。电子设备1600根据电容的变化确定压力的强度。当有触摸操作作用于显示屏1694,电子设备1600根据压力传感器1680A检测所述触摸操作强度。电子设备1600也可以根据压力传感器1680A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 1680A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 1680A may be located on display screen 1694 . There are many types of pressure sensors 1680A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 1680A, the capacitance between the electrodes changes. The electronic device 1600 determines the intensity of pressure from the change in capacitance. When a touch operation acts on the display screen 1694, the electronic device 1600 detects the intensity of the touch operation according to the pressure sensor 1680A. The electronic device 1600 may also calculate the touched position according to the detection signal of the pressure sensor 1680A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
陀螺仪传感器1680B可以用于确定电子设备1600的运动姿态。在一些实施例中,可以通过陀螺仪传感器1680B确定电子设备1600围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器1680B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器1680B检测电子设备1600抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备1600的抖动,实现防抖。陀螺仪传感器1680B还可以用于导航,体感游戏场景。The
气压传感器1680C用于测量气压。在一些实施例中,电子设备1600通过气压传感器1680C测得的气压值计算海拔高度,辅助定位和导航。The barometric pressure sensor 1680C is used to measure barometric pressure. In some embodiments, the electronic device 1600 calculates the altitude based on the air pressure value measured by the air pressure sensor 1680C to assist positioning and navigation.
磁传感器1680D包括霍尔传感器。电子设备1600可以利用磁传感器1680D检测翻盖皮套的开合。在一些实施例中,当电子设备1600是翻盖机时,电子设备1600可以根据磁传感器1680D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 1680D includes a Hall sensor. The electronic device 1600 may detect opening and closing of the flip holster using the magnetic sensor 1680D. In some embodiments, when the electronic device 1600 is a flip machine, the electronic device 1600 can detect the opening and closing of the flip according to the magnetic sensor 1680D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器1680E可检测电子设备1600在各个方向上(一般为三轴)加速度的大小。当电子设备1600静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 1680E can detect the acceleration of the electronic device 1600 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 1600 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器1680F,用于测量距离。电子设备1600可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备1600可以利用距离传感器1680F测距以实现快速对焦。Distance sensor 1680F, used to measure distance. The electronic device 1600 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 1600 can use the distance sensor 1680F for distance measurement to achieve fast focusing.
接近光传感器1680G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备1600通过发光二极管向外发射红外光。电子设备1600使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备1600附近有物体。当检测到不充分的反射光时,电子设备1600可以确定电子设备1600附近没有物体。电子设备1600可以利用接近光传感器1680G检测用户手持电子设备1600贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器1680G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 1680G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 1600 emits infrared light through the light emitting diode. Electronic device 1600 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 1600 . When insufficient reflected light is detected, the electronic device 1600 may determine that there is no object near the electronic device 1600 . The electronic device 1600 can use the proximity light sensor 1680G to detect that the user holds the electronic device 1600 close to the ear to make a call, so as to automatically turn off the screen to save power. Proximity light sensor 1680G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
环境光传感器1680L用于感知环境光亮度。电子设备1600可以根据感知的环境光亮度自适应调节显示屏1694亮度。环境光传感器1680L也可用于拍照时自动调节白平衡。环境光传感器1680L还可以与接近光传感器1680G配合,检测电子设备1600是否在口袋里,以防误触。The ambient light sensor 1680L is used for sensing ambient light brightness. The electronic device 1600 can adaptively adjust the brightness of the display screen 1694 according to the perceived ambient light brightness. The ambient light sensor 1680L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 1680L can also cooperate with the proximity light sensor 1680G to detect whether the electronic device 1600 is in the pocket to prevent accidental touch.
指纹传感器1680H用于采集指纹。电子设备1600可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 1680H is used to collect fingerprints. The electronic device 1600 can use the collected fingerprint features to unlock fingerprints, access application locks, take photos with fingerprints, answer incoming calls with fingerprints, and so on.
温度传感器1680J用于检测温度。在一些实施例中,电子设备1600利用温度传感器1680J检测的温度,执行温度处理策略。例如,当温度传感器1680J上报的温度超过阈值,电子设备1600执行降低位于温度传感器1680J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备1600对电池1642加热,以避免低温导致电子设备1600异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备1600对电池1642的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 1680J is used to detect temperature. In some embodiments, the electronic device 1600 uses the temperature detected by the temperature sensor 1680J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 1680J exceeds the threshold, the electronic device 1600 may reduce the performance of the processor located near the temperature sensor 1680J, so as to reduce power consumption and implement thermal protection. In some other embodiments, when the temperature is lower than another threshold, the electronic device 1600 heats the battery 1642 to avoid abnormal shutdown of the electronic device 1600 caused by low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 1600 boosts the output voltage of the battery 1642 to avoid abnormal shutdown caused by low temperature.
触摸传感器1680K,也称“触控器件”。触摸传感器1680K可以设置于显示屏1694,由触摸传感器1680K与显示屏1694组成触摸屏,也称“触控屏”。触摸传感器1680K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏1694提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器1680K也可以设置于电子设备1600的表面,与显示屏1694所处的位置不同。Touch sensor 1680K, also known as "touch device". The touch sensor 1680K can be arranged on the display screen 1694, and the touch sensor 1680K and the display screen 1694 form a touch screen, also called “touch screen”. The touch sensor 1680K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations can be provided through the display screen 1694 . In some other embodiments, the touch sensor 1680K may also be disposed on the surface of the electronic device 1600 , which is different from the position of the display screen 1694 .
骨传导传感器1680M可以获取振动信号。在一些实施例中,骨传导传感器1680M可以获取人体声部振动骨块的振动信号。骨传导传感器1680M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器1680M也可以设置于耳机中,结合成骨传导耳机。音频模块1670可以基于所述骨传导传感器1680M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器1680M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 1680M can acquire vibration signals. In some embodiments, the bone conduction sensor 1680M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 1680M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 1680M can also be set in the earphone, combined into a bone conduction earphone. The
按键1690包括开机键,音量键等。按键1690可以是机械按键。也可以是触摸式按键。电子设备1600可以接收按键输入,产生与电子设备1600的用户设置以及功能控制有关的键信号输入。The keys 1690 include a power key, a volume key, and the like. Key 1690 may be a mechanical key. It can also be a touch button. The electronic device 1600 may receive key input and generate key signal input related to user settings and function control of the electronic device 1600 .
马达1691可以产生振动提示。马达1691可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏1694不同区域的触摸操作,马达1691也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 1691 can generate a vibrating prompt. The motor 1691 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 1691 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 1694 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器1692可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 1692 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口1695用于连接SIM卡。SIM卡可以通过插入SIM卡接口1695,或从SIM卡接口1695拔出,实现和电子设备1600的接触和分离。电子设备1600可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口1695可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口1695可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口1695也可以兼容不同类型的SIM卡。SIM卡接口1695也可以兼容外部存储卡。电子设备1600通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备1600采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备1600中,不能和电子设备1600分离。The
具体实现中,本申请还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行上述实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-onlymemory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。In a specific implementation, the present application also provides a computer storage medium, wherein the computer storage medium can store a program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the parts in the above-mentioned embodiments or all steps. The storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, ROM for short), or a random access memory (English: random access memory, RAM for short), and the like.
具体实现中,本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包含可执行指令,当所述可执行指令在计算机上执行时,使得计算机执行上述方法实施例中的部分或全部步骤。In a specific implementation, an embodiment of the present application also provides a computer program product, the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or part of the above method embodiments. All steps.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three kinds of relationships, for example, A and/or B may indicate that A exists alone, A and B exist simultaneously, or B exists alone. Among them, A and B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, and c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, and c may be single or multiple.
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that each unit and algorithm steps described in the embodiments disclosed herein can be realized by a combination of electronic hardware, computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本发明所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,简称ROM)、随机存取存储器(random access memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In the several embodiments provided by the present invention, if any function is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, referred to as ROM), random access memory (random access memory, referred to as RAM), magnetic disk or optical disc, etc., which can store program codes. medium.
以上所述,仅为本发明的具体实施方式,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present invention, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention, which should be covered by the protection scope of the present invention. The protection scope of the present invention shall be determined by the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110823852.0ACN115686339A (en) | 2021-07-21 | 2021-07-21 | Cross-process information processing method, electronic device, storage medium, and program product |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110823852.0ACN115686339A (en) | 2021-07-21 | 2021-07-21 | Cross-process information processing method, electronic device, storage medium, and program product |
| Publication Number | Publication Date |
|---|---|
| CN115686339Atrue CN115686339A (en) | 2023-02-03 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110823852.0APendingCN115686339A (en) | 2021-07-21 | 2021-07-21 | Cross-process information processing method, electronic device, storage medium, and program product |
| Country | Link |
|---|---|
| CN (1) | CN115686339A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170091779A1 (en)* | 2015-09-30 | 2017-03-30 | Microsoft Technology Licensing, Llc | Context-aware support |
| WO2019021048A1 (en)* | 2017-07-24 | 2019-01-31 | Yogesh Chunilal Rathod | Ephemeral content sharing and connecting users based on sharing unique link from 3r parties' applications and storing and relating unique identity or code of link sharing user with link accessing user |
| US20200311028A1 (en)* | 2019-03-25 | 2020-10-01 | Parallels International Gmbh | Recent file synchronization and aggregation methods and systems |
| CN112534408A (en)* | 2018-03-16 | 2021-03-19 | 坎瓦有限公司 | System and method for publishing designs |
| CN112654973A (en)* | 2018-11-06 | 2021-04-13 | 卓普网盘股份有限公司 | Techniques for integrating cloud content items across platforms |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170091779A1 (en)* | 2015-09-30 | 2017-03-30 | Microsoft Technology Licensing, Llc | Context-aware support |
| WO2019021048A1 (en)* | 2017-07-24 | 2019-01-31 | Yogesh Chunilal Rathod | Ephemeral content sharing and connecting users based on sharing unique link from 3r parties' applications and storing and relating unique identity or code of link sharing user with link accessing user |
| CN112534408A (en)* | 2018-03-16 | 2021-03-19 | 坎瓦有限公司 | System and method for publishing designs |
| CN112654973A (en)* | 2018-11-06 | 2021-04-13 | 卓普网盘股份有限公司 | Techniques for integrating cloud content items across platforms |
| US20200311028A1 (en)* | 2019-03-25 | 2020-10-01 | Parallels International Gmbh | Recent file synchronization and aggregation methods and systems |
| Publication | Publication Date | Title |
|---|---|---|
| US11669242B2 (en) | Screenshot method and electronic device | |
| US20230115868A1 (en) | Displaying Interfaces in Different Display Areas Based on Activities | |
| JP7235871B2 (en) | Data transmission method and electronic device | |
| CN113885759B (en) | Notification message processing method, device, system and computer readable storage medium | |
| WO2020259452A1 (en) | Full-screen display method for mobile terminal, and apparatus | |
| CN111443884A (en) | Screen projection method and device and electronic equipment | |
| US20230189366A1 (en) | Bluetooth Communication Method, Terminal Device, and Computer-Readable Storage Medium | |
| US20230070358A1 (en) | File Sharing Method, System, and Related Device | |
| US12058486B2 (en) | Method and apparatus for implementing automatic translation by using a plurality of TWS headsets connected in forwarding mode | |
| CN114125130B (en) | Method for controlling communication service state, terminal device and readable storage medium | |
| CN110262877A (en) | Card processing method and device | |
| CN114489533A (en) | Screen projection method and device, electronic equipment and computer readable storage medium | |
| EP4293997A1 (en) | Display method, electronic device, and system | |
| CN114827581A (en) | Synchronization delay measuring method, content synchronization method, terminal device, and storage medium | |
| US20250060865A1 (en) | Screen capture method, electronic device, medium, and program product | |
| CN111935705A (en) | Data service management method and device, computer readable medium and terminal equipment | |
| CN113810595B (en) | Encoding method, apparatus and storage medium for video shooting | |
| CN112532508B (en) | A video communication method and video communication device | |
| CN115480682A (en) | Dragging method and electronic equipment | |
| CN114398320A (en) | A distributed data search method and a method for sharing index files | |
| US12387391B2 (en) | Method for generating brush effect picture, image editing method, device, and storage medium | |
| CN114500725B (en) | Target content transfer method, master device, slave device and storage medium | |
| CN115706994A (en) | Access control method and electronic equipment | |
| CN115686339A (en) | Cross-process information processing method, electronic device, storage medium, and program product | |
| CN113950045A (en) | Subscription data downloading method and electronic equipment |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | Country or region after:China Address after:Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Applicant after:Honor Terminal Co.,Ltd. Address before:3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Applicant before:Honor Device Co.,Ltd. Country or region before:China | |
| CB02 | Change of applicant information |