





技术领域technical field
本申请属于通信技术领域,具体涉及一种应用程序的处理方法、装置及电子设备。The present application belongs to the field of communication technologies, and specifically relates to a method, an apparatus and an electronic device for processing an application program.
背景技术Background technique
随着电子设备的发展,应用程序的类型、功能也越来越多。应用程序在开发使用过程中,往往需要进行更新,以修复漏洞或升级新功能等。目前,用户一般是通过手动操作的方式进行应用程序升级,如用户通过应用商店(或应用市场)升级/安装应用程序时,用户需要先打开应用商店,找到需要升级/安装的应用程序再通过点击升级/安装按钮,进行相应应用程序的升级/安装;或者用户也可以通过浏览器下载需要升级/安装的应用程序包(Android application package,APK),再通过下载的安装包进行相应应用程序的升级/安装。目前电子设备在升级/安装应用程序时需要下载APK,可能存在流量消耗的问题,并且这种手动升级/安装应用程序的操作过程繁琐。With the development of electronic devices, there are more and more types and functions of applications. During the development and use of applications, they often need to be updated to fix bugs or upgrade new functions. At present, users generally upgrade applications by manual operation. For example, when a user upgrades/installs an application through the application store (or application market), the user needs to open the application store first, find the application to be upgraded/installed, and then click Upgrade/install button to upgrade/install the corresponding application; or users can download the application package (Android application package, APK) that needs to be upgraded/installed through the browser, and then upgrade the corresponding application through the downloaded installation package /Install. Currently, electronic devices need to download an APK when upgrading/installing an application, which may cause a problem of data consumption, and the operation process of manually upgrading/installing an application is cumbersome.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种应用程序的处理方法、装置及电子设备,能够解决目前手动升级/安装应用程序的操作过程繁琐,以及可能存在流量消耗的问题。The purpose of the embodiments of the present application is to provide an application processing method, apparatus, and electronic device, which can solve the current problems of complicated operation procedures for manually upgrading/installing applications and possible traffic consumption.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种应用程序的处理方法,应用于第一设备,所述方法包括:In a first aspect, an embodiment of the present application provides a method for processing an application program, which is applied to a first device, and the method includes:
接收用户的第一输入;receiving the first input from the user;
响应于所述第一输入,在所述第一设备与第二设备建立连接的情况下,与所述第二设备之间进行第一应用程序的版本信息的交互;In response to the first input, in the case of establishing a connection between the first device and the second device, interact with the second device on the version information of the first application;
根据与所述第二设备之间交互的版本信息,通过所述第二设备安装第一目标程序,和/或,获取所述第二设备中第二目标程序的数据信息,并根据所述数据信息运行所述第二目标程序;Install the first target program through the second device according to the version information interacted with the second device, and/or acquire data information of the second target program in the second device, and use the data according to the data information to run the second target program;
其中,所述第一应用程序包括所述第一目标程序和所述第二目标程序。Wherein, the first application program includes the first target program and the second target program.
第二方面,本申请实施例提供了一种应用程序的处理装置,应用于第一设备,所述装置包括:In a second aspect, an embodiment of the present application provides an apparatus for processing an application program, which is applied to a first device, and the apparatus includes:
第一接收模块,用于接收用户的第一输入;a first receiving module, configured to receive the first input of the user;
第一响应模块,用于响应于所述第一输入,在所述第一设备与第二设备建立连接的情况下,与所述第二设备之间进行第一应用程序的版本信息的交互;a first response module, configured to, in response to the first input, perform an interaction of the version information of the first application with the second device when the first device establishes a connection with the second device;
处理模块,用于根据与所述第二设备之间交互的版本信息,通过所述第二设备安装第一目标程序,和/或,获取所述第二设备中第二目标程序的数据信息,并根据所述数据信息运行所述第二目标程序;a processing module, configured to install the first target program through the second device according to the version information interacted with the second device, and/or obtain data information of the second target program in the second device, and run the second target program according to the data information;
其中,所述第一应用程序包括所述第一目标程序和所述第二目标程序。Wherein, the first application program includes the first target program and the second target program.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
在本申请实施例中,在第一设备与第二设备建立连接的情况下,第一设备可以与第二设备之间的应用程序版本信息的交互,来通过第二设备安装第一目标程序,或者通过第二设备上已安装的第二目标程序,在第一设备上运行该第二目标程序,从而减少了第一设备安装应用程序的用户操作过程,并且还可以降低流量消耗。并且,在第一设备通过第二设备上已安装的第二目标程序,在第一设备上运行该第二目标程序的方式,以减少用户的安装操作过程,以及减少空间占用。In the embodiment of the present application, when the first device establishes a connection with the second device, the first device may interact with the application version information between the second device to install the first target program through the second device, Or run the second target program on the first device through the second target program already installed on the second device, thereby reducing the user operation process of installing the application program on the first device, and also reducing traffic consumption. In addition, the second target program installed on the second device is used to run the second target program on the first device, so as to reduce the installation operation process of the user and reduce the space occupation.
附图说明Description of drawings
图1是本申请实施例的应用程序的处理方法的流程图;FIG. 1 is a flowchart of a processing method of an application according to an embodiment of the present application;
图2是本申请实施例的应用程序的处理方法的另一流程图;Fig. 2 is another flowchart of the processing method of the application according to the embodiment of the present application;
图3是本申请实施例第一设备和第二设备在共享模式的显示界面示意图;3 is a schematic diagram of a display interface of a first device and a second device in a shared mode according to an embodiment of the present application;
图4是本申请实施例的应用程序的处理装置的框图;4 is a block diagram of an apparatus for processing an application program according to an embodiment of the present application;
图5是本申请实施例的电子设备的框图;5 is a block diagram of an electronic device according to an embodiment of the present application;
图6是本申请实施例的电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的应用程序的处理方法进行详细地说明。以下针对第一设备执行应用程序的处理方法为例进行说明,应当理解的是,在本申请实施例中第一设备和第二设备可以互换。The following describes the processing method of the application provided by the embodiment of the present application in detail through specific embodiments and application scenarios with reference to the accompanying drawings. The following describes a method for processing an application program executed by a first device as an example. It should be understood that, in this embodiment of the present application, the first device and the second device may be interchanged.
如图1所示,本发明实施例提供了一种应用程序的处理方法,应用于第一设备,所述方法可以具体包括以下步骤:As shown in FIG. 1 , an embodiment of the present invention provides a method for processing an application program, which is applied to a first device. The method may specifically include the following steps:
步骤11:接收用户的第一输入。Step 11: Receive the first input from the user.
可选地,该第一输入可以是用于向第二电子设备发送应用程序处理请求的输入。其中,应用程序处理请求可以是应用程序的安装请求,或者应用程序的升级(或称为更新)请求,或者第一设备运行第二设备上的应用程序的请求等。以上应用程序处理可以称为第一设备和第二设备之间的共享模式。Optionally, the first input may be an input for sending an application processing request to the second electronic device. The application processing request may be an application installation request, or an application upgrade (or update) request, or a first device running an application on a second device, or the like. The above application processing may be referred to as a shared mode between the first device and the second device.
例如:第一设备显示目标应用程序的版本过低,需要升级的情况下,用户可以在第一设备上选择进入联系人界面,并从该联系人界面中选择待请求应用程序处理的第一联系人,即开启对应第一联系人的会话请求(如用户可以点击第一联系人对应的“发起请求”按钮,开启对应第一联系人的会话请求)。For example, when the first device shows that the version of the target application is too low and needs to be upgraded, the user can choose to enter the contact interface on the first device, and select the first contact to be processed by the application from the contact interface. person, that is, to open a session request corresponding to the first contact (for example, the user can click the "Initiate Request" button corresponding to the first contact to open a session request corresponding to the first contact).
步骤12:响应于所述第一输入,在所述第一设备与第二设备建立连接的情况下,与所述第二设备之间进行第一应用程序的版本信息的交互。Step 12: In response to the first input, in the case of establishing a connection between the first device and the second device, interact with the second device on the version information of the first application.
可选地,所述第一设备和所述第二设备建立连接可以是通过蓝牙建立连接,或者通过无线网络建立连接,或者第一设备和第二设备连接至同一局域网络等,满足第一设备和第二设备之间可以进行数据传输即可,本申请实施例不以此为限。Optionally, the connection between the first device and the second device may be established through Bluetooth, or through a wireless network, or the first device and the second device are connected to the same local area network, etc. It only needs to perform data transmission with the second device, which is not limited in this embodiment of the present application.
可选地,第二设备接收第一设备发送的应用程序处理请求的情况下,可以根据该应用程序处理请求向第一设备反馈应答信息,该应答信息用于指示该第二设备是否允许所述第一设备的应用程序处理请求;如,在第二设备反馈的应答信息指示第二设备允许所述第一设备的应用程序处理请求时,第一设备和第二设备可以建立连接。Optionally, when the second device receives an application processing request sent by the first device, it may feed back response information to the first device according to the application processing request, where the response information is used to indicate whether the second device allows the The application program of the first device processes the request; for example, when the response information fed back by the second device indicates that the second device allows the application program of the first device to process the request, the first device and the second device can establish a connection.
例如:第二设备接收第一设备发送的应用程序处理请求的情况下,第二设备可以显示第一设备发送的请求,并且第二设备侧的用户可以选择点击“接收”或者“拒绝”按钮,以便决定是否与第一设备产生共享模式的互动,以提供第一设备完成其共享模式的操作。For example, when the second device receives the application processing request sent by the first device, the second device can display the request sent by the first device, and the user on the second device side can choose to click the "Accept" or "Reject" button, In order to decide whether to interact with the first device in the sharing mode, so as to provide the first device to complete the operation of the sharing mode.
步骤13:根据与所述第二设备之间交互的版本信息,通过所述第二设备安装第一目标程序,和/或,获取所述第二设备中第二目标程序的数据信息,并根据所述数据信息运行所述第二目标程序;其中,所述第一应用程序包括所述第一目标程序和所述第二目标程序。Step 13: According to the version information interacted with the second device, install the first target program through the second device, and/or obtain the data information of the second target program in the second device, and according to The data information runs the second object program; wherein, the first application program includes the first object program and the second object program.
可选地,所述第一设备通过所述第二设备安装第一目标程序可以包括:第一设备未安装所述第一目标程序的情况下,通过所述第二设备安装所述第一目标程序;或者,第一设备已安装所述第一目标程序的情况下,通过所述第二设备安装更高版本的第一目标程序(即第一设备可以通过第二设备升级已安装的第一目标程序)。Optionally, the first device installing the first target program through the second device may include: in the case where the first target program is not installed on the first device, installing the first target through the second device or, when the first target program has been installed on the first device, install a higher version of the first target program through the second device (that is, the first device can upgrade the installed first target program through the second device). target program).
可选地,第一设备获取所述第二设备中第二目标程序的数据信息,并根据所述数据信息运行所述第二目标程序,也可以理解为第一设备调用第二设备中第二目标程序的相应程序数据,在第一设备上直接运行所述第二目标程序,且第一设备可以无需安装该第二目标程序。Optionally, the first device acquires data information of the second target program in the second device, and runs the second target program according to the data information, which can also be understood as the first device calling the second target program in the second device. The corresponding program data of the target program directly runs the second target program on the first device, and the first device may not need to install the second target program.
该实施例中,在第一设备与第二设备建立连接的情况下,第一设备可以与第二设备之间的应用程序版本信息的交互,来通过第二设备安装第一目标程序,或者通过第二设备上已安装的第二目标程序,在第一设备上运行该第二目标程序,从而减少了第一设备安装应用程序的用户操作过程,并且还可以降低流量消耗。并且,在第一设备通过第二设备上已安装的第二目标程序,在第一设备上运行该第二目标程序的方式,以减少用户的安装操作过程,以及减少空间占用。In this embodiment, when a connection is established between the first device and the second device, the first device can interact with the application version information between the second device to install the first target program through the second device, or install the first target program through the second device. The second target program already installed on the second device runs the second target program on the first device, thereby reducing the user operation process for installing the application program on the first device, and also reducing traffic consumption. In addition, the second target program installed on the second device is used to run the second target program on the first device, so as to reduce the installation operation process of the user and reduce the space occupation.
可选地,在所述第一设备与第二设备建立连接的情况下,与所述第二设备之间进行第一应用程序的版本信息的交互,可以具体包括:Optionally, when the first device establishes a connection with the second device, the interaction of the version information of the first application with the second device may specifically include:
在所述第一设备与第二设备建立连接的情况下,发送第一版本信息至所述第二设备;或者,在所述第一设备与第二设备建立连接的情况下,接收所述第二设备发送的第二版本信息;When the first device establishes a connection with a second device, send the first version information to the second device; or, when the first device establishes a connection with a second device, receive the first version information Second version information sent by the device;
其中,所述第一版本信息为所述第一设备的所有应用程序的版本信息,或者所述第一版本信息为所述第一设备待安装的第一目标程序的版本信息,或者所述第一版本信息为所述第一设备已安装的第一目标程序的版本信息,或者所述第一版本信息为所述第一设备待运行的第二目标程序的版本信息;The first version information is the version information of all application programs of the first device, or the first version information is the version information of the first target program to be installed by the first device, or the first version information One version information is the version information of the first target program installed by the first device, or the first version information is the version information of the second target program to be run by the first device;
所述第二版本信息为所述第二设备的所有应用程序的版本信息,或者所述第二版本信息为所述的第二设备已安装的第一目标程序的版本信息,或者所述第二版本信息为所述第二设备已安装的第二目标程序的版本信息。The second version information is the version information of all application programs of the second device, or the second version information is the version information of the first target program that has been installed by the second device, or the second version information. The version information is the version information of the second target program installed on the second device.
可选地,在第一设备与第二设备建立连接,即处于共享模式的情况下,第一设备和第二设备可以跨距离,通过应用程序的版本信息进行智能匹配,即第一设备和第二设备可以通过共享匹配,进行应用程序版本信息的共享。如:第一设备通过网络发起用户数据报协议(User Datagram Protocol,UDP)广播,广播支持应用程序安装或运行的协议和列表。当第二设备收到广播消息后,可以将其当前比第一设备版本高的应用程序版本信息列表,通过网络主动推送给第一设备。Optionally, when the first device establishes a connection with the second device, that is, is in the sharing mode, the first device and the second device can cross the distance and perform intelligent matching through the version information of the application, that is, the first device and the second device can be intelligently matched. Two devices can share application version information through sharing matching. For example, the first device initiates a User Datagram Protocol (User Datagram Protocol, UDP) broadcast through the network, and broadcasts the protocols and lists that support the installation or running of the application. After the second device receives the broadcast message, it can actively push a list of application version information that is currently higher than that of the first device to the first device through the network.
例如:在所述第一设备与第二设备建立连接的情况下,与所述第二设备之间进行第一应用程序的版本信息的交互可以包括:第一设备向第二设备发送所述第一设备的所有应用程序的第一版本信息,第二设备根据接收到的第一版本信息进行匹配确认,并向所述第一设备反馈第二设备已安装的第一目标程序的版本信息;其中,所述第一设备可以是安装了所述第一目标程序,且第一设备安装的第一目标程序比第二设备安装的第一目标程序的版本低。For example, when the first device establishes a connection with the second device, the interaction of the version information of the first application with the second device may include: the first device sends the second device to the second device. The first version information of all application programs of a device, the second device performs matching confirmation according to the received first version information, and feeds back to the first device the version information of the first target program installed by the second device; wherein , the first device may have the first target program installed, and the version of the first target program installed on the first device is lower than that of the first target program installed on the second device.
或者,第一设备向第二设备发送所述第一设备的所有应用程序的版本信息,第二设备根据接收到的第一设备的所有应用程序的版本信息进行匹配确认,并向所述第一设备反馈第二设备已安装的第二目标程序的版本信息;其中,所述第一设备未安装所述第二目标程序。Alternatively, the first device sends version information of all applications of the first device to the second device, and the second device performs matching confirmation according to the received version information of all applications of the first device, and sends the first device to the first device. The device feeds back version information of the second target program installed by the second device; wherein the second target program is not installed on the first device.
又例如:在所述第一设备和所述第二设备建立连接的情况下,与所述第二设备之间进行第一应用程序的版本信息的交互可以包括:第二设备向第一设备发送所述第二设备的所有应用程序的第二版本信息,第一设备根据接收到的第二版本信息进行匹配确认,并向所述第一设备反馈第一设备待安装的第一目标程序的版本信息;其中,所述第二设备可以是安装了该第一目标程序,或者未安装该第一目标程序;For another example: when the first device and the second device establish a connection, the interaction of the version information of the first application with the second device may include: the second device sends the first device to Second version information of all application programs of the second device, the first device performs matching confirmation according to the received second version information, and feeds back to the first device the version of the first target program to be installed by the first device information; wherein, the second device may have the first target program installed, or the first target program may not be installed;
或者,第二设备向第一设备发送所述第二设备的所有应用程序的第二版本信息,第一设备根据接收到的第二版本信息进行匹配确认,并向第二设备反馈第一设备待运行的第二目标程序的版本信息;其中,所述第二设备可以是安装了该第二目标程序,或者未安装该第二目标程序。Or, the second device sends the second version information of all the application programs of the second device to the first device, the first device performs matching confirmation according to the received second version information, and feeds back to the second device that the first device is waiting The version information of the running second target program; wherein, the second device may have the second target program installed, or the second target program may not be installed.
又例如:第一设备可以直接向第二设备发送所述第一设备待安装的第一目标程序的版本信息,以指示第二设备为第一设备提供所述第一目标程序的安装。或者,第一设备可以直接向第二设备发送所述第一设备待运行的第二目标程序的版本信息,以指示第二设备为第一设备提供所述第一目标程序的运行。For another example, the first device may directly send the version information of the first target program to be installed by the first device to the second device, so as to instruct the second device to provide the first device with the installation of the first target program. Alternatively, the first device may directly send the version information of the second target program to be run by the first device to the second device, so as to instruct the second device to provide the first device with running the first target program.
需要说明的是,本申请实施例除了以上第一设备和第二设备之间进行的第一应用程序的版本信息的交互方式的示例外,还可以包括其他交互方式,本申请实施例不以为限。可选地,本申请实施例中第一设备和第二设备之间进行的第一应用程序的版本信息的交互可以采用以上至少一种方式,本申请实施例不做具体限定。It should be noted that, in addition to the above examples of the interaction mode of the version information of the first application between the first device and the second device, the embodiments of the present application may also include other interaction modes, which are not limited by the embodiments of the present application. . Optionally, the interaction of the version information of the first application between the first device and the second device in the embodiment of the present application may adopt at least one of the above manners, which is not specifically limited in the embodiment of the present application.
可选地,在接收所述第二设备发送的第二版本信息,且所述第二版本信息包括所述第一目标程序的版本信息的情况下,所述根据与所述第二设备之间交互的版本信息,通过所述第二设备安装第一目标程序的步骤,可以具体包括:Optionally, in the case of receiving the second version information sent by the second device, and the second version information includes the version information of the first target program, the basis is communicated with the second device. The interactive version information, the step of installing the first target program through the second device may specifically include:
若所述第二设备发送的第一目标程序的版本信息高于所述第一设备已安装的第一目标程序的版本信息,则通过所述第二设备安装所述第一目标程序。If the version information of the first target program sent by the second device is higher than the version information of the first target program installed by the first device, the first target program is installed through the second device.
可选地,第一设备可以通过将自身已安装的第一目标程序的版本信息与第二设备发送的第一目标程序的版本信息进行比对,如果应用程序的名称相同,且第二设备发送的应用程序的版本高于第一设备已安装的应用程序的版本,则向第二设备请求相应版本较高的应用程序,并自动静默安装。Optionally, the first device can compare the version information of the first target program installed by itself with the version information of the first target program sent by the second device, if the names of the applications are the same, and the second device sends If the version of the application program is higher than the version of the application program installed on the first device, the application program with the corresponding higher version is requested from the second device and installed automatically and silently.
可选地,在通过第二设备安装第一目标程序之前,可以检测第二设备发送的第一目标程序的版本信息与第一设备的系统信息是否匹配,若检测该第一设备的系统信息能够安装该第二设备相应版本的第一目标程序,则通过所述第二设备安装第一目标程序,从而实现对第一设备中第一目标程序的升级,并且减少了用户的手动操作。如:针对不便于升级应用程序或者不便于操作第一设备的特殊群体用户来说,通过本申请实施例中的共享模式可以直接跨距离进行应用程序共享,避免了各种繁琐步骤。Optionally, before installing the first target program through the second device, it can be detected whether the version information of the first target program sent by the second device matches the system information of the first device, if the system information of the first device can be detected. If the first target program of the corresponding version of the second device is installed, the first target program is installed through the second device, thereby realizing the upgrade of the first target program in the first device and reducing the manual operation of the user. For example, for a special group of users who are inconvenient to upgrade the application program or operate the first device, the sharing mode in the embodiment of the present application can directly share the application program across distances, avoiding various tedious steps.
若检测该第一设备的系统信息不能安装该第二设备相应版本的第一目标程序,则可以通过调用所述第二设备中第一目标程序的程序数据,并在所述第一设备上运行所述第一目标程序,从而保证第一设备侧用户可以在无需安装第一目标程序的情况下使用该第一目标程序。如:针对第一设备的系统版本较低无法安装高版本的第一目标程序时,通过应用程序共享的方式可以保证用户对第一目标程序的正常使用,并且还可以节省第一设备的内存空间。If it is detected that the system information of the first device cannot install the first target program of the corresponding version of the second device, the program data of the first target program in the second device can be called and run on the first device. the first target program, thereby ensuring that the user on the first device side can use the first target program without installing the first target program. For example, when the system version of the first device is low and a high version of the first target program cannot be installed, the application program sharing method can ensure the normal use of the first target program by the user, and can also save the memory space of the first device. .
可选地,在接收所述第二设备发送的第二版本信息,且所述第二版本信息不包括所述第一目标程序的版本信息的情况下,所述根据与所述第二设备之间交互的版本信息,通过所述第二设备安装第一目标程序的步骤,可以具体包括:Optionally, in the case where the second version information sent by the second device is received, and the second version information does not include the version information of the first target program, the The version information interacted between the two devices, the step of installing the first target program through the second device may specifically include:
发送第一请求信息至所述第二设备;其中,所述第一请求信息用于指示所述第二设备下载所述第一目标程序的安装包;sending first request information to the second device; wherein the first request information is used to instruct the second device to download the installation package of the first target program;
接收所述第二设备根据所述第一请求信息反馈的第一应答信息;其中,所述第一应答信息用于指示所述第二设备下载完成所述第一目标程序的安装包;receiving the first response information fed back by the second device according to the first request information; wherein the first response information is used to instruct the second device to download and complete the installation package of the first target program;
根据所述第一应答信息,通过所述第二设备安装所述第一目标程序。According to the first response information, the first target program is installed through the second device.
例如:在根据第一设备与第二设备进行版本信息的交互过程中,确定第二设备中并未安装该第一目标程序,或者第二设备不存在第一目标程序的安装包的情况下,可以通过向第二设备发送第一请求信息,以请求所述第二设备下载该第一目标程序的安装包,并直接通过第二设备下载的安装包进行第一目标程序的安装,从而可以避免用户手动下载安装包并安装的繁琐过程,并且还可以节省第一设备的流量消耗等。For example: in the process of interacting version information between the first device and the second device, it is determined that the first target program is not installed in the second device, or the second device does not have an installation package of the first target program, It is possible to request the second device to download the installation package of the first target program by sending the first request information to the second device, and to install the first target program directly through the installation package downloaded by the second device, thereby avoiding The tedious process of manually downloading and installing the installation package by the user can also save the data consumption of the first device and the like.
可选地,在接收所述第二设备发送的第二版本信息,且所述第二版本信息不包括所述第二目标程序的版本信息的情况下,所述根据与所述第二设备之间交互的版本信息,获取所述第二设备中第二目标程序的数据信息,并根据所述数据信息运行所述第二目标程序,包括:Optionally, in the case where the second version information sent by the second device is received, and the second version information does not include the version information of the second target program, the The version information of the interaction between the two devices, obtain the data information of the second target program in the second device, and run the second target program according to the data information, including:
发送第二请求信息至所述第二设备;其中,所述第二请求信息用于指示所述第二设备安装所述第二目标程序;sending second request information to the second device; wherein the second request information is used to instruct the second device to install the second target program;
接收所述第二设备根据所述第二请求信息反馈的第二应答信息;其中,所述第二应答信息用于指示所述第二设备安装完成所述第二目标程序;receiving second response information fed back by the second device according to the second request information; wherein the second response information is used to instruct the second device to complete the installation of the second target program;
根据所述第二应答信息,获取所述第二设备中所述第二目标程序的程序数据信息,并显示根据所述数据信息运行所述第二目标程序的应用界面。According to the second response information, program data information of the second target program in the second device is acquired, and an application interface for running the second target program according to the data information is displayed.
例如:在根据第一设备和第二设备进行应用程序的版本信息的交互过程中,确定第二设备中并未安装该第二目标程序,且第一设备不满足安装所述第二目标程序的条件(如第一设备的内存不足,或者第一设备的系统信息与该第二目标程序的版本信息不匹配等)时,可以通过向第二设备发送第二请求信息,以请求该第二设备下载并安装所述第二目标程序,并通过调用所述第二设备中第二目标程序的程序数据的方式,在第一设备中运行所述第二目标程序,从而第一设备可以无需安装该第二目标程序,且能够保证用户正常使用。For example: during the interaction process of the version information of the application program according to the first device and the second device, it is determined that the second target program is not installed in the second device, and the first device does not meet the requirements for installing the second target program. When the condition (such as insufficient memory of the first device, or the system information of the first device does not match the version information of the second target program, etc.), the second device can be sent the second request information to request the second device. Download and install the second target program, and run the second target program in the first device by calling the program data of the second target program in the second device, so that the first device does not need to install the second target program. The second target program can ensure the normal use of the user.
可选地,在第一设备与第二设备之间进行应用程序的版本信息交互的过程中,第一设备可以根据第二设备发送的应用程序的版本信息,确定其要通过第二设备进行安装的应用程序,以及第二设备可以根据第一设备发送的应用程序的版本信息,确定其要通过第一设备进行安装的应用程序,这样在,在第一设备与第二设备之间进行应用程序的版本信息交互后,第一设备和第二设备可以分别通过交互更新其对应的应用程序。Optionally, in the process of exchanging the version information of the application program between the first device and the second device, the first device may determine that it is to be installed through the second device according to the version information of the application program sent by the second device. and the second device can determine the application to be installed through the first device according to the version information of the application sent by the first device, so that the application is executed between the first device and the second device. After interacting with the version information of the first device and the second device, the corresponding application programs can be updated respectively through the interaction.
可选地,在第一设备通过第二设备安装第一目标程序的情况下,若检测到第二设备中第一目标程序的版本信息与第一设备的系统型号不匹配,而发生第一设备安装所述第一目标程序失败,或者安装所述第一目标程序无法正常使用,则可以按照第一目标程序的应用功能选择回滚(如按照第一设备中备份的第一目标程序的原安装包进行重新安装),或者直接调用第二设备中第一目标程序的程序数据,并在第一设备上运行所述第一目标程序。Optionally, when the first device installs the first target program through the second device, if it is detected that the version information of the first target program in the second device does not match the system model of the first device, and the first device If the installation of the first target program fails, or the installation of the first target program cannot be used normally, the rollback can be selected according to the application function of the first target program (for example, according to the original installation of the first target program backed up in the first device) package), or directly call the program data of the first target program in the second device, and run the first target program on the first device.
例如:针对第一设备的系统版本较低,且不支持升级到更新版本的第一目标程序的情况下,可以在升级失败后直接启动共享模式,被共享方(即第二设备)启用共享屏幕控件(类似一个悬浮影藏功能),以提供第一设备对升级失败的应用程序的使用。可选地,第一设备可以通过共享屏幕控件查看第二设备上的应用程序,即第二设备的应用程序可以实时展示在第一设备上;或者,第一设备不便于下载内容时,第二设备可以协助第一设备进行下载,并通过共享屏幕控件,共享给第一设备使用,并且避免占用第一设备的内存空间;或者,在共享模式下,第一设备可以直接删除相较于第二设备中版本较低的应用程序,以通过第二设备运行版本较高的应用程序,并释放自身的内存空间。For example, if the system version of the first device is lower and does not support upgrading to a newer version of the first target program, the sharing mode can be started directly after the upgrade fails, and the shared party (ie, the second device) enables screen sharing A control (similar to a floating shadow hide function) to provide the first device with the use of the application that failed to upgrade. Optionally, the first device can view the application program on the second device through the shared screen control, that is, the application program of the second device can be displayed on the first device in real time; The device can assist the first device to download, and share it with the first device by sharing the screen control, and avoid occupying the memory space of the first device; or, in the sharing mode, the first device can directly delete it. An application with a lower version in the device can run an application with a higher version through the second device and release its own memory space.
可选地,在第一设备通过第二设备安装第一目标程序的情况下,若检测到第二设备中第一目标程序的版本信息与第一设备的系统型号不匹配,而发生第一设备安装所述第一目标程序失败,或者安装所述第一目标程序无法正常使用,则可以根据用户的选择输入,确定是按照第一目标程序的应用功能选择回滚,或者是直接调用第二设备中第一目标程序的程序数据,并在第一设备上运行所述第一目标程序,从而为用户提供了可选择性。Optionally, when the first device installs the first target program through the second device, if it is detected that the version information of the first target program in the second device does not match the system model of the first device, and the first device If the installation of the first target program fails, or the installation of the first target program cannot be used normally, it can be determined according to the user's selection input to select rollback according to the application function of the first target program, or directly call the second device program data of the first target program in the first device, and the first target program is run on the first device, thereby providing the user with selectivity.
如图2所示,给出了一种应用程序处理方法的另一流程图;具体包括以下步骤:As shown in Figure 2, another flowchart of an application processing method is given; it specifically includes the following steps:
步骤201:第一设备向第二设备发起共享请求;Step 201: the first device initiates a sharing request to the second device;
步骤202:第二设备是否接受共享请求;若第二设备接收共享请求,则执行步骤203,否则流程结束。Step 202: whether the second device accepts the sharing request; if the second device receives the sharing request,
步骤203:第二设备授权应用程序智能匹配;Step 203: the second device authorizes the intelligent matching of the application program;
步骤204:第二设备通过应用程序智能匹配,确定是否存在版本高于第一设备且适用于第一设备的应用程序;若第二设备存在版本高于第一设备,且适用于第一设备的应用程序,则执行步骤205;否则,流程结束。Step 204: The second device determines whether there is an application with a version higher than that of the first device and suitable for the first device through intelligent matching of the application; application, go to step 205; otherwise, the process ends.
步骤205:第一设备通过第二设备进行应用程序升级;如:当第二设备存在版本高于第一设备的目标应用程序的情况下,第一设备可以自动通过第二设备进行目标应用程序的升级。Step 205: The first device upgrades the application program through the second device; for example, when the second device has a target application with a version higher than that of the first device, the first device can automatically upgrade the target application through the second device. upgrade.
步骤206:第一设备和第二设备通过应用程序版本信息的交互,确定第一设备和第二设备中版本较高的应用程序。如:通过将第一设备中应用程序的版本信息和第二设备中应用程序的版本信息进行匹配,确定两者之间版本较高的应用程序;Step 206: The first device and the second device determine, through the interaction of the application version information, an application with a higher version in the first device and the second device. For example, by matching the version information of the application in the first device with the version information of the application in the second device, determine the application with a higher version between the two;
步骤207:通过共享模式,对第一设备和第二设备中版本较低的应用程序进行升级;如图3,给出了第一设备和第二设备在共享模式下进行应用程序升级的显示界面的示例,在共享模式下第一设备和第二设备可以同步进行应用程序升级,从而自动将应用程序升级到第一设备和第二设备中的较高版本。Step 207 : Upgrade the applications with lower versions in the first device and the second device through the sharing mode; as shown in FIG. 3 , a display interface of the first device and the second device performing the application upgrade in the sharing mode is given For example, in the sharing mode, the first device and the second device can upgrade the application program synchronously, so that the application program is automatically upgraded to a higher version in the first device and the second device.
步骤208:对第一设备和第二设备的系统信息与应用程序的版本信息进行匹配,确定是否升级成功;若判断系统信息与应用程序的版本信息匹配,则确定升级成功,流程结束;否则执行步骤210Step 208: Match the system information of the first device and the second device with the version information of the application to determine whether the upgrade is successful; if it is judged that the system information matches the version information of the application, it is determined that the upgrade is successful, and the process ends; otherwise, execute
步骤209:用户选择应用程序回滚安装或者共享应用程序;Step 209: the user selects the application to roll back the installation or share the application;
步骤210:是否开启应用程序共享模式;在开启应用程序共享模式的情况下,执行步骤211;否则流程结束。Step 210: whether to enable the application sharing mode; in the case of enabling the application sharing mode, perform
步骤211:删除较低版本的应用程序。Step 211: Delete the lower version of the application.
本申请实施例中,至少两个设备之间通过后台自动识别较高版本的应用程序,并进行应用程序升级,减少了用户手动升级应用程序的操作过程,提高的应用程序的升级效率,并且可以减少流量消耗。In this embodiment of the present application, at least two devices automatically identify an application of a higher version through the background, and upgrade the application, which reduces the operation process of manually upgrading the application by the user, improves the upgrading efficiency of the application, and can Reduce traffic consumption.
可选地,至少两个设备之间可以在连接至同一设备,或者连接在同一个路由器下,或者通过蓝牙连接时,进行应用程序升级。Optionally, an application upgrade can be performed between at least two devices when they are connected to the same device, or connected to the same router, or connected via Bluetooth.
可选地,多个设备可以组成共享局域网,共享局域网内的多个设备之间可以通过匹配应用程序版本信息,进行自动升级。或者,还可以与服务器的对比,对升级策略进行限制,也可以通过存储系统升级包,实现自动升级系统版本等。如在系统版本升级成功后,还可以推送当前设备存在,且其他设备不存在的应用程序给其他设备,以提供其他设备进行选择性的安装,即构成一个局域网的应用商店。Optionally, multiple devices can form a shared local area network, and multiple devices in the shared local area network can be automatically upgraded by matching application program version information. Alternatively, the upgrade strategy can be restricted by comparison with the server, or the system version can be automatically upgraded by storing the system upgrade package. For example, after the system version is successfully upgraded, you can also push the application programs that exist on the current device and do not exist on other devices to other devices, so as to provide other devices for selective installation, which constitutes a local area network application store.
需要说明的是,本申请实施例提供的应用程序的处理方法,执行主体可以为应用程序的处理创智,或者该装置中的用于执行应用程序的处理方法的控制模块。本申请实施例中以应用程序的处理装置执行应用程序的处理方法为例,说明本申请实施例提供的应用程序的处理装置。It should be noted that, in the application processing method provided by the embodiments of the present application, the execution subject may be the application processing innovation, or a control module in the apparatus for executing the application processing method. In the embodiments of the present application, a processing method for executing an application program by an apparatus for processing an application program is used as an example to describe the apparatus for processing an application program provided by the embodiments of the present application.
如图4所示,本发明实施例还提供了一种应用程序的处理装置,应用于第一设备,所述装置400包括:As shown in FIG. 4 , an embodiment of the present invention further provides an apparatus for processing an application program, which is applied to a first device. The
第一接收模块410,用于接收用户的第一输入;a
第一响应模块420,用于响应于所述第一输入,在所述第一设备与第二设备建立连接的情况下,与所述第二设备之间进行第一应用程序的版本信息的交互;The
处理模块430,用于根据与所述第二设备之间交互的版本信息,通过所述第二设备安装第一目标程序,和/或,获取所述第二设备中第二目标程序的数据信息,并根据所述数据信息运行所述第二目标程序;A
其中,所述第一应用程序包括所述第一目标程序和所述第二目标程序。Wherein, the first application program includes the first target program and the second target program.
可选地,所述第一响应模块420包括:Optionally, the
第一发送单元,用于在所述第一设备与第二设备建立连接的情况下,发送第一版本信息至所述第二设备;a first sending unit, configured to send first version information to the second device when the first device establishes a connection with the second device;
或者,or,
第一接收单元,用于在所述第一设备与第二设备建立连接的情况下,接收所述第二设备发送的第二版本信息;a first receiving unit, configured to receive the second version information sent by the second device when the first device establishes a connection with the second device;
其中,所述第一版本信息为所述第一设备的所有应用程序的版本信息,或者所述第一版本信息为所述第一设备待安装的第一目标程序的版本信息,或者所述第一版本信息为所述第一设备已安装的第一目标程序的版本信息,或者所述第一版本信息为所述第一设备待运行的第二目标程序的版本信息;The first version information is the version information of all application programs of the first device, or the first version information is the version information of the first target program to be installed by the first device, or the first version information One version information is the version information of the first target program installed by the first device, or the first version information is the version information of the second target program to be run by the first device;
所述第二版本信息为所述第二设备的所有应用程序的版本信息,或者所述第二版本信息为所述的第二设备已安装的第一目标程序的版本信息,或者所述第二版本信息为所述第二设备已安装的第二目标程序的版本信息。The second version information is the version information of all application programs of the second device, or the second version information is the version information of the first target program that has been installed by the second device, or the second version information. The version information is the version information of the second target program installed on the second device.
可选地,在所述第一接收单元接收所述第二设备发送的第二版本信息,且所述第二版本信息包括所述第一目标程序的版本信息的情况下,所述处理模块430包括:Optionally, when the first receiving unit receives the second version information sent by the second device, and the second version information includes the version information of the first target program, the
第一安装单元,用于若所述第二设备发送的第一目标程序的版本信息高于所述第一设备已安装的第一目标程序的版本信息,则通过所述第二设备安装所述第一目标程序。A first installation unit, configured to install the first target program through the second device if the version information of the first target program sent by the second device is higher than the version information of the first target program already installed by the first device first target program.
可选地,在所述第一接收单元接收所述第二设备发送的第二版本信息,且所述第二版本信息不包括所述第一目标程序的版本信息的情况下,所述处理模块430包括:Optionally, when the first receiving unit receives the second version information sent by the second device, and the second version information does not include the version information of the first target program, the
第二发送单元,用于发送第一请求信息至所述第二设备;其中,所述第一请求信息用于指示所述第二设备下载所述第一目标程序的安装包;a second sending unit, configured to send first request information to the second device; wherein the first request information is used to instruct the second device to download the installation package of the first target program;
第二接收单元,用于接收所述第二设备根据所述第一请求信息反馈的第一应答信息;其中,所述第一应答信息用于指示所述第二设备下载完成所述第一目标程序的安装包;a second receiving unit, configured to receive first response information fed back by the second device according to the first request information; wherein the first response information is used to instruct the second device to download the first target the installation package of the program;
第二安装单元,用于根据所述第一应答信息,通过所述第二设备安装所述第一目标程序。A second installation unit, configured to install the first target program through the second device according to the first response information.
可选地,在所述第一接收单元接收所述第二设备发送的第二版本信息,且所述第二版本信息不包括所述第二目标程序的版本信息的情况下,所述处理模块430包括:Optionally, when the first receiving unit receives the second version information sent by the second device, and the second version information does not include the version information of the second target program, the
第三发送单元,用于发送第二请求信息至所述第二设备;其中,所述第二请求信息用于指示所述第二设备安装所述第二目标程序;a third sending unit, configured to send second request information to the second device; wherein the second request information is used to instruct the second device to install the second target program;
第三接收单元,用于接收所述第二设备根据所述第二请求信息反馈的第二应答信息;其中,所述第二应答信息用于指示所述第二设备安装完成所述第二目标程序;a third receiving unit, configured to receive second response information fed back by the second device according to the second request information; wherein the second response information is used to instruct the second device to complete the installation of the second target program;
根据所述第二应答信息,获取所述第二设备中第二目标程序的数据信息,并根据所述数据信息运行所述第二目标程序。Acquire data information of the second target program in the second device according to the second response information, and run the second target program according to the data information.
本申请实施例中的应用程序的处理装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The processing device of the application program in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. This application Examples are not specifically limited.
本申请实施例中的应用程序的处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The processing device of the application program in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的应用程序的处理装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。The apparatus for processing an application program provided in the embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 3 , which is not repeated here to avoid repetition.
本发明实施例中,在第一设备与第二设备建立连接的情况下,第一设备可以与第二设备之间的应用程序版本信息的交互,来通过第二设备安装第一目标程序,或者通过第二设备上已安装的第二目标程序,在第一设备上运行该第二目标程序,从而减少了第一设备安装应用程序的用户操作过程,并且还可以降低流量消耗。并且,在第一设备通过第二设备上已安装的第二目标程序,在第一设备上运行该第二目标程序的方式,以减少用户的安装操作过程,以及减少空间占用。In this embodiment of the present invention, when a connection is established between the first device and the second device, the first device may interact with the application version information between the second device to install the first target program through the second device, or By running the second target program on the first device through the second target program already installed on the second device, the user operation process for installing the application program on the first device can be reduced, and data consumption can also be reduced. In addition, the second target program installed on the second device is used to run the second target program on the first device, so as to reduce the installation operation process of the user and reduce the space occupation.
可选的,如图5所示,本申请实施例还提供一种电子设备500,包括处理器501,存储器502,存储在存储器502上并可在所述处理器501上运行的程序或指令,该程序或指令被处理器501执行时实现上述应用程序的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 5 , an embodiment of the present application further provides an
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图6为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。The
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the
其中,用户输入单元607,用于接收用户的第一输入;Wherein, the
处理器610,用于响应于所述第一输入,在所述第一设备与第二设备建立连接的情况下,与所述第二设备之间进行第一应用程序的版本信息的交互;根据与所述第二设备之间交互的版本信息,通过所述第二设备安装第一目标程序,和/或,获取所述第二设备中第二目标程序的数据信息,并根据所述数据信息运行所述第二目标程序。The
可选的,射频单元601,用于在所述第一设备与第二设备建立连接的情况下,发送第一版本信息至所述第二设备;或者,在所述第一设备与第二设备建立连接的情况下,接收所述第二设备发送的第二版本信息;Optionally, the radio frequency unit 601 is configured to send the first version information to the second device when the first device establishes a connection with the second device; or, when the first device and the second device are connected In the case of establishing a connection, receiving the second version information sent by the second device;
其中,所述第一版本信息为所述第一设备的所有应用程序的版本信息,或者所述第一版本信息为所述第一设备待安装的第一目标程序的版本信息,或者所述第一版本信息为所述第一设备已安装的第一目标程序的版本信息,或者所述第一版本信息为所述第一设备待运行的第二目标程序的版本信息;The first version information is the version information of all application programs of the first device, or the first version information is the version information of the first target program to be installed by the first device, or the first version information One version information is the version information of the first target program installed by the first device, or the first version information is the version information of the second target program to be run by the first device;
所述第二版本信息为所述第二设备的所有应用程序的版本信息,或者所述第二版本信息为所述的第二设备已安装的第一目标程序的版本信息,或者所述第二版本信息为所述第二设备已安装的第二目标程序的版本信息。The second version information is the version information of all application programs of the second device, or the second version information is the version information of the first target program that has been installed by the second device, or the second version information. The version information is the version information of the second target program installed on the second device.
可选地,处理器610,用于在接收所述第二设备发送的第二版本信息,且所述第二版本信息包括所述第一目标程序的版本信息的情况下,若所述第二设备发送的第一目标程序的版本信息高于所述第一设备已安装的第一目标程序的版本信息,则通过所述第二设备安装所述第一目标程序。Optionally, the
可选地,射频单元601,用于在接收所述第二设备发送的第二版本信息,且所述第二版本信息不包括所述第一目标程序的版本信息的情况下,发送第一请求信息至所述第二设备;其中,所述第一请求信息用于指示所述第二设备下载所述第一目标程序的安装包;以及接收所述第二设备根据所述第一请求信息反馈的第一应答信息;其中,所述第一应答信息用于指示所述第二设备下载完成所述第一目标程序的安装包;Optionally, the radio frequency unit 601 is configured to send a first request when receiving the second version information sent by the second device, and the second version information does not include the version information of the first target program information to the second device; wherein the first request information is used to instruct the second device to download the installation package of the first target program; and receive feedback from the second device according to the first request information The first response information; wherein, the first response information is used to instruct the second device to download and complete the installation package of the first target program;
处理器610,用于根据所述第一应答信息,通过所述第二设备安装所述第一目标程序。The
可选地,射频单元601,用于在接收所述第二设备发送的第二版本信息,且所述第二版本信息不包括所述第二目标程序的版本信息的情况下,发送第二请求信息至所述第二设备;其中,所述第二请求信息用于指示所述第二设备安装所述第二目标程序;以及接收所述第二设备根据所述第二请求信息反馈的第二应答信息;其中,所述第二应答信息用于指示所述第二设备安装完成所述第二目标程序;Optionally, the radio frequency unit 601 is configured to send a second request when receiving the second version information sent by the second device, and the second version information does not include the version information of the second target program information to the second device; wherein the second request information is used to instruct the second device to install the second target program; and receive the second request information fed back by the second device according to the second request information response information; wherein, the second response information is used to instruct the second device to complete the installation of the second target program;
处理器610,用于根据所述第二应答信息,获取所述第二设备中所述第二目标程序的数据信息,并根据所述数据信息运行所述第二目标程序。The
本申请实施例中,在第一设备与第二设备建立连接的情况下,第一设备可以与第二设备之间的应用程序版本信息的交互,来通过第二设备安装第一目标程序,或者通过第二设备上已安装的第二目标程序,在第一设备上运行该第二目标程序,从而减少了第一设备安装应用程序的用户操作过程,并且还可以降低流量消耗。并且,在第一设备通过第二设备上已安装的第二目标程序,在第一设备上运行该第二目标程序的方式,以减少用户的安装操作过程,以及减少空间占用。In this embodiment of the present application, when a connection is established between the first device and the second device, the first device may interact with the application version information between the second device to install the first target program through the second device, or By running the second target program on the first device through the second target program already installed on the second device, the user operation process for installing the application program on the first device can be reduced, and data consumption can also be reduced. In addition, the second target program installed on the second device is used to run the second target program on the first device, so as to reduce the installation operation process of the user and reduce the space occupation.
应理解的是,本申请实施例中,输入单元604可以包括图形处理器(GraphicsProcessing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器609可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。It should be understood that, in this embodiment of the present application, the
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述应用程序的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing application program processing method embodiment is implemented, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述应用程序的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the processing method for the above application program In order to avoid repetition, the details are not repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. In addition, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011150382.8ACN112230943A (en) | 2020-10-23 | 2020-10-23 | Application processing method, device and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011150382.8ACN112230943A (en) | 2020-10-23 | 2020-10-23 | Application processing method, device and electronic device |
| Publication Number | Publication Date |
|---|---|
| CN112230943Atrue CN112230943A (en) | 2021-01-15 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011150382.8APendingCN112230943A (en) | 2020-10-23 | 2020-10-23 | Application processing method, device and electronic device |
| Country | Link |
|---|---|
| CN (1) | CN112230943A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112905209A (en)* | 2021-03-23 | 2021-06-04 | 维沃移动通信(深圳)有限公司 | Application program updating method and device |
| CN113138786A (en)* | 2021-04-25 | 2021-07-20 | 维沃移动通信有限公司 | Application updating method and device |
| CN113849231A (en)* | 2021-09-01 | 2021-12-28 | 珠海格力电器股份有限公司 | Application program running method and device, storage medium and electronic equipment |
| CN114237979A (en)* | 2021-11-23 | 2022-03-25 | 维沃移动通信有限公司 | Data switching method, device and electronic device |
| CN114297072A (en)* | 2021-12-29 | 2022-04-08 | 建信金融科技有限责任公司 | Code analysis method, system, device, equipment and computer readable storage medium |
| WO2022228305A1 (en)* | 2021-04-29 | 2022-11-03 | 维沃移动通信(杭州)有限公司 | Interface display method and apparatus, electronic device and medium |
| WO2023070993A1 (en)* | 2021-10-29 | 2023-05-04 | 京东方科技集团股份有限公司 | Display control method, display system, electronic device, and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20080065166A (en)* | 2007-01-08 | 2008-07-11 | 엘지전자 주식회사 | App Download Device and Method of Touch Panel in Mobile Terminal |
| CN103294338A (en)* | 2012-02-29 | 2013-09-11 | 株式会社泛泰 | Wireless terminal device and method for sharing application |
| CN104699491A (en)* | 2013-12-06 | 2015-06-10 | 中兴通讯股份有限公司 | Upgrade processing method and terminal device of application program |
| CN107205014A (en)* | 2017-04-14 | 2017-09-26 | 腾讯科技(深圳)有限公司 | A kind of application program method for down loading and client |
| CN110502287A (en)* | 2019-07-01 | 2019-11-26 | 维沃移动通信有限公司 | An application program control method and terminal |
| CN110851220A (en)* | 2019-10-30 | 2020-02-28 | 维沃移动通信有限公司 | An information output method and electronic device |
| CN110990029A (en)* | 2019-11-27 | 2020-04-10 | 维沃移动通信有限公司 | Application processing method and electronic device |
| CN111104142A (en)* | 2019-12-26 | 2020-05-05 | 珠海格力电器股份有限公司 | Software upgrading method and device, electronic equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20080065166A (en)* | 2007-01-08 | 2008-07-11 | 엘지전자 주식회사 | App Download Device and Method of Touch Panel in Mobile Terminal |
| CN103294338A (en)* | 2012-02-29 | 2013-09-11 | 株式会社泛泰 | Wireless terminal device and method for sharing application |
| CN104699491A (en)* | 2013-12-06 | 2015-06-10 | 中兴通讯股份有限公司 | Upgrade processing method and terminal device of application program |
| CN107205014A (en)* | 2017-04-14 | 2017-09-26 | 腾讯科技(深圳)有限公司 | A kind of application program method for down loading and client |
| CN110502287A (en)* | 2019-07-01 | 2019-11-26 | 维沃移动通信有限公司 | An application program control method and terminal |
| CN110851220A (en)* | 2019-10-30 | 2020-02-28 | 维沃移动通信有限公司 | An information output method and electronic device |
| CN110990029A (en)* | 2019-11-27 | 2020-04-10 | 维沃移动通信有限公司 | Application processing method and electronic device |
| CN111104142A (en)* | 2019-12-26 | 2020-05-05 | 珠海格力电器股份有限公司 | Software upgrading method and device, electronic equipment and storage medium |
| Title |
|---|
| 余颖, 董旭源, 高宏: "C/S模式管理信息系统实现自动升级和维护的方法", 佳木斯大学学报(自然科学版), no. 02, 30 June 2005 (2005-06-30)* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112905209A (en)* | 2021-03-23 | 2021-06-04 | 维沃移动通信(深圳)有限公司 | Application program updating method and device |
| CN113138786A (en)* | 2021-04-25 | 2021-07-20 | 维沃移动通信有限公司 | Application updating method and device |
| WO2022228305A1 (en)* | 2021-04-29 | 2022-11-03 | 维沃移动通信(杭州)有限公司 | Interface display method and apparatus, electronic device and medium |
| CN113849231A (en)* | 2021-09-01 | 2021-12-28 | 珠海格力电器股份有限公司 | Application program running method and device, storage medium and electronic equipment |
| CN113849231B (en)* | 2021-09-01 | 2024-05-10 | 珠海格力电器股份有限公司 | Application program running method and device, storage medium and electronic equipment |
| WO2023070993A1 (en)* | 2021-10-29 | 2023-05-04 | 京东方科技集团股份有限公司 | Display control method, display system, electronic device, and readable storage medium |
| CN114237979A (en)* | 2021-11-23 | 2022-03-25 | 维沃移动通信有限公司 | Data switching method, device and electronic device |
| CN114297072A (en)* | 2021-12-29 | 2022-04-08 | 建信金融科技有限责任公司 | Code analysis method, system, device, equipment and computer readable storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| CN112230943A (en) | Application processing method, device and electronic device | |
| CN111880870B (en) | Method, device and electronic device for controlling electronic device | |
| US20170149700A1 (en) | Message withdrawal method, apparatus and storage medium | |
| CN104967971A (en) | A method of realizing automatic reconnection of bluetooth under Android system | |
| JP2023017926A (en) | Software upgrade management method, server, terminal, device, and storage medium | |
| CN114461239B (en) | Software upgrading system and software upgrading method | |
| CN113138786B (en) | Application updating method and device | |
| CN110990741A (en) | Page display method and device, electronic equipment, server and storage medium | |
| CN103339601A (en) | Apparatus and method for providing application auto-install function in digital device | |
| WO2016008256A1 (en) | Method for terminal to update operating system, terminal and system | |
| US10412564B2 (en) | Apparatus, method, and system for displaying antenna location of communication terminal, and recording medium | |
| CN105389183A (en) | Method and device for correspondence between application program version and smart speaker software version | |
| CN112905209B (en) | Application program updating method and device | |
| CN111966372A (en) | Firmware upgrade method, device and device for portable printer | |
| WO2022228305A1 (en) | Interface display method and apparatus, electronic device and medium | |
| CN111596875A (en) | Screen extension method and electronic device | |
| WO2022089478A1 (en) | Light-filling method and apparatus, and electronic device | |
| WO2025040006A1 (en) | Device control method and apparatus, control device, and computer storage medium | |
| CN117499236A (en) | A method, device and storage medium for gateway equipment upgrade | |
| CN115225649A (en) | Data synchronization method, device and electronic device | |
| CN113138785A (en) | Application program updating method and device | |
| US20230051434A1 (en) | Application installation method and apparatus, terminal device, and storage medium | |
| JP2003044288A (en) | Information processing apparatus, information processing system, and program | |
| CN112181406B (en) | Sharing method and device of rendering engine | |
| CN113709235B (en) | Device registration method and device, electronic device and storage medium |
| 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 | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20210115 | |
| RJ01 | Rejection of invention patent application after publication |