WO2016095405A1 - 呈现安卓设备上应用程序的方法及装置 - Google Patents

呈现安卓设备上应用程序的方法及装置 Download PDF

Info

Publication number
WO2016095405A1
WO2016095405A1 PCT/CN2015/078301 CN2015078301W WO2016095405A1 WO 2016095405 A1 WO2016095405 A1 WO 2016095405A1 CN 2015078301 W CN2015078301 W CN 2015078301W WO 2016095405 A1 WO2016095405 A1 WO 2016095405A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
configuration
application
name
request
Prior art date
Application number
PCT/CN2015/078301
Other languages
English (en)
French (fr)
Inventor
朱靖飞
沈莹
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016095405A1 publication Critical patent/WO2016095405A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Definitions

  • This paper relates to intelligent embedded devices for Android systems, and more particularly to a method and device for presenting applications on Android devices.
  • Android has gradually spread to other fields, such as smart set-top boxes, smart watches, smart gateways and many other fields.
  • the way to display the interface such as the smart set-top box is to project the graphic into a peripheral device such as a television through a high definition multimedia interface (HDMI) on the device, but in an embedded device of an Android system without an HDMI interface, especially in In the no-screen Android device, the interface of the traditional application will not be displayed.
  • HDMI high definition multimedia interface
  • This document provides a method and apparatus for presenting an application on an Android device to overcome the problem that an application in an Android device without an HDMI interface cannot be displayed.
  • a method for presenting an application on an Android device, applied to a client comprising: sending a file request to an Android device, the file request carrying a file name of the requested file and information of an application to which the requested file belongs Receiving a file content of the requested file returned by the Android device according to the file request; rendering and rendering the file content.
  • the method further includes: receiving a configuration parameter input by the user, and sending a configuration request carrying the configuration parameter to the Android device, where the configuration request is And carrying the configuration result of the configuration method and the information of the application to which the configuration method belongs; receiving the configuration result returned by the Android device after performing the configuration corresponding to the configuration parameter according to the configuration method; parsing the configuration result, and The file content is re-rendered and rendered according to the parsed result of the parsing.
  • a method for presenting an application on an Android device, applied to an Android device comprising: receiving a file request sent by a client, the file request carrying a file name and a file of the requested file Requesting information of the application to which the file belongs; searching for a corresponding application according to the application to which the requested file belongs; reading the corresponding file from the found application according to the file name of the requested file, and obtaining The file content of the file; the read file content is sent to the client, wherein the file content is used for rendering and rendering by the client.
  • the method further includes: receiving a configuration request that is sent by the client and carrying a configuration parameter, where the configuration request is further carried The name of the configuration method and the information of the application to which the configuration method belongs; searching for the corresponding application according to the information of the application to which the configuration method belongs; and obtaining the obtained application according to the name of the configuration method a configuration method, the configuration corresponding to the configuration parameter is performed by the configuration method, and the configuration result is obtained; the configuration result is sent to the client, to parse the configured result by the client, and re-render and render the result according to the parsing result. document content.
  • the configuration method is obtained from the searched application according to the name of the configuration method, and the configuration corresponding to the configuration parameter is performed by the configuration method, and the configuration result is obtained, including:
  • the method of the RIP Remote Procedure Call Protocol
  • the method of the RIP is used to invoke the method interface corresponding to the name of the configuration method, so that the configuration corresponding to the configuration parameter is executed through the method interface, and the configuration result is obtained.
  • the file is read from the found application according to the file name of the requested file, and the file content of the file is obtained, including: by using an RPC interface, from the found application. Reading a file corresponding to the file name of the requested file, and obtaining the file content of the file.
  • An apparatus for presenting an application on an Android device comprising: a first sending module, configured to: send a file request to an Android device, the file request carrying a file name of the requested file and an application to which the requested file belongs
  • the first receiving module is configured to: receive the file content of the requested file returned by the Android device according to the file request; and the first rendering module is configured to: render and render the file content.
  • the device further includes: a second sending module, configured to: receive a configuration parameter input by the user, and send a configuration request that carries the configuration parameter to the Android device, where the configuration request further carries a configuration The name of the method and the information of the application to which the configuration method belongs;
  • the receiving module is configured to: receive a configuration result returned by the Android device after performing the configuration corresponding to the configuration parameter according to the configuration method;
  • the second rendering module is configured to: parse the configuration result, and obtain an analysis according to the parsing The result re-renders and renders the contents of the file.
  • An apparatus for presenting an application on an Android device comprising: a third receiving module, configured to: receive a file request sent by a client, where the file request carries a file name of the requested file and an application to which the requested file belongs
  • the first search module is configured to: search for a corresponding application according to the application to which the requested file belongs; and obtain an module, set to: according to the file name of the requested file, from the found application Reading the corresponding file to obtain the file content of the file;
  • the third sending module is configured to: send the read file content to the client, where the file content is used to pass the The client renders and renders.
  • the device further includes: a fourth receiving module, configured to: receive a configuration request that is sent by the client and that carries a configuration parameter, where the configuration request further carries a name of the configuration method and the configuration method belongs to Information of the application; the second search module is configured to: search for a corresponding application according to information of the application to which the configuration method belongs; configure a module, according to the name of the configuration method, from the found application Obtaining a configuration method, performing configuration corresponding to the configuration parameter by using the configuration method, and obtaining a configuration result; the fourth sending module is configured to: send the configured result to the client, to parse the configured result by using the client The file content is re-rendered and rendered according to the parsing result.
  • a fourth receiving module configured to: receive a configuration request that is sent by the client and that carries a configuration parameter, where the configuration request further carries a name of the configuration method and the configuration method belongs to Information of the application
  • the second search module is configured to: search for a corresponding application according
  • the configuration module includes: a first calling unit, configured to: invoke, by using an RPC interface, a method interface corresponding to the name of the configuration method, to perform configuration corresponding to the configuration parameter by using the method interface, and Get the configuration result.
  • a first calling unit configured to: invoke, by using an RPC interface, a method interface corresponding to the name of the configuration method, to perform configuration corresponding to the configuration parameter by using the method interface, and Get the configuration result.
  • the obtaining module includes: a second calling unit, configured to: read, by using an RPC interface, a file corresponding to a file name of the requested file from the found application, to obtain a file of the file content.
  • a second calling unit configured to: read, by using an RPC interface, a file corresponding to a file name of the requested file from the found application, to obtain a file of the file content.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the method and device for presenting an application on an Android device can present an application on an Android device to a client without using an HDMI interface, especially in a non-screen Android device.
  • FIG. 1 is a flowchart of a method for presenting an application on an Android device according to an embodiment of the present invention
  • FIG. 2 is a second flowchart of a method for presenting an application on an Android device according to an embodiment of the present invention
  • FIG. 3 is a third flowchart of a method for presenting an application on an Android device according to an embodiment of the present invention
  • FIG. 4 is a fourth flowchart of a method for presenting an application on an Android device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram showing an actual application of an embodiment of the present invention.
  • Figure 6 shows a second schematic diagram of an actual application of the embodiment of the present invention.
  • FIG. 7 is a flowchart of a device for presenting an application on an Android device according to an embodiment of the present invention.
  • FIG. 8 is a second flowchart of a device for presenting an application on an Android device according to an embodiment of the present invention.
  • FIG. 9 is a third flowchart of a device for presenting an application on an Android device according to an embodiment of the present invention.
  • FIG. 10 shows a fourth flowchart of a device for presenting an application on an Android device according to an embodiment of the present invention.
  • one embodiment of a method for presenting an application on an Android device is applied to a client.
  • the method includes the following steps:
  • Step S100 Send a file request to an Android device, where the file request carries the file name of the requested file and the information of the application to which the requested file belongs.
  • Step S200 Receive a file content of the requested file returned by the Android device according to the file request.
  • Step S300 rendering and presenting the file content.
  • the embodiment of the present invention presents an application on an Android device without using an HDMI interface. Solved the problem that the application cannot be rendered in the screenless Android device without the HDMI interface.
  • Step S400 Receive a configuration parameter input by the user, and send a configuration request carrying the configuration parameter to the Android device, where the configuration request further carries the name of the configuration method and the information of the application to which the configuration method belongs.
  • Step S500 Receive a configuration result returned by the Android device after performing configuration corresponding to the configuration parameter according to the configuration method.
  • Step S600 Parsing the configuration result, and re-rendering and presenting the file content according to the parsed result.
  • the configuration result may be a model with success or failure information. If the configuration result is a model with success information, the client re-renders the obtained file content and the model, and the word "success" may be presented on the client. But it is not limited to this.
  • a method for presenting an application on an Android device, applied to an Android device includes the following steps:
  • Step S1000 Receive a file request sent by the client, where the file request carries the file name of the requested file and the information of the application to which the requested file belongs.
  • Step S2000 Search for a corresponding application according to an application to which the requested file belongs.
  • Step S3000 Read the corresponding file from the found application according to the file name of the requested file, and obtain the file content of the file.
  • Step S4000 Send the read content of the file to the client, where the file content is used for rendering and rendering by the client.
  • the Android device reads the file corresponding to the file name of the file requested in the file request from the found application through the RPC interface, and the file may be a page file, such as Hyper Text Markup Language (HTML).
  • HTTP Hyper Text Markup Language
  • CSS Cascading Style Sheets
  • Cascading Style Sheets Cascading Style Sheets
  • the embodiment of the present invention further includes the following steps after the step S4000:
  • step S5000 the configuration request that carries the configuration parameter sent by the client is received, and the configuration request further carries the name of the configuration method and the information of the application to which the configuration method belongs.
  • Step S6000 Search for the corresponding application according to the information of the application to which the configuration method belongs. sequence.
  • step S7000 a configuration method is obtained from the found application according to the name of the configuration method, and the configuration corresponding to the configuration parameter is executed by the configuration method, and the configuration result is obtained.
  • Step S8000 Send the result of the configuration to the client, to parse the configured result by the client, and re-render and render the file content according to the parsing result.
  • the request type includes a file request and a configuration request.
  • the request type of the embodiment of the present invention is a configuration request
  • the method interface corresponding to the name of the configuration method is invoked through the RPC interface, so that the method interface performs the configuration corresponding to the configuration parameter, and obtains the configuration result.
  • the client sends a file request to the Android device to which the application to be presented belongs, the file request carrying the file name of the requested file and the requested file. Information about the application to which it belongs.
  • the listening module of the user interface service application of the Android device receives the file request, determines the application to be rendered according to the information of the application to which the requested file belongs in the file request, and the monitoring module loads the user interface module of the application through the RPC.
  • the file is then pushed to the client, and the client renders and renders the received file.
  • FIG. 6 it is the second application flowchart of the embodiment of the present invention.
  • the request sent by the client is a configuration request
  • the configuration request also carries the name of the configuration method and the application to which the configuration method belongs.
  • the information of the program is configured by the RPC to call the interface corresponding to the name of the configuration method.
  • the parameters required for configuration are carried by the packet body of the configuration request.
  • an apparatus for presenting an application on an Android device includes: a first sending module 701, a first receiving module 702, and a first rendering module 703.
  • the first sending module 701 is configured to: send a file request to an Android device, the file request carries the file name of the requested file and the information of the application to which the requested file belongs;
  • the first receiving module 702 is configured to: receive The file content of the requested file returned by the Android device according to the file request;
  • the first rendering module 703 is configured to: render and render the file content.
  • the application on the Android device is rendered by the embodiment of the present invention without using the HDMI interface. In particular, it solves the limitation that the application cannot be rendered in the screenless Android device.
  • the embodiment of the present invention further includes a second sending module 704, a second receiving module 705, and a second rendering module 706.
  • the second sending module 704 is configured to receive The configuration parameter input by the user, and sending a configuration request carrying the configuration parameter to the Android device, the configuration request further carrying the name of the configuration method and the information of the application to which the configuration method belongs;
  • the second receiving module 705 is configured to: receive the Android device The configuration result returned after the configuration corresponding to the configuration parameter is executed according to the configuration method;
  • the second rendering module 706 is configured to: parse the configuration result, and re-render and render the file content according to the parsed result.
  • an apparatus for presenting an application on an Android device which is applied to an Android device, and the device includes: a third receiving module 901, a first searching module 902,
  • the obtaining module 903 and the third sending module 904 are configured to: receive a file request sent by the client, and the file request carries the file name of the requested file and the information of the application to which the requested file belongs;
  • a search module 902 is configured to: search for a corresponding application according to an application to which the requested file belongs; and obtain an module 903, configured to: read a corresponding file from the found application according to the file name of the requested file.
  • the third sending module 904 is configured to: send the read file content to the client, where the file content is used for rendering and rendering by the client, where the obtaining module 903
  • the method includes: a second calling unit, configured to: read, by using an RPC interface, a file name of the requested file from the found application Call the corresponding file and get the file content of the file.
  • the embodiment of the present invention further includes a fourth receiving module 905, a second searching module 906, a configuration module 907, and a fourth sending module 908, and a fourth receiving module 905.
  • the setting is: receiving a configuration request that is sent by the client and carrying the configuration parameter, where the configuration request further carries the name of the configuration method and the information of the application to which the configuration method belongs;
  • the second searching module 906 is configured to: according to the application to which the configuration method belongs The information of the program is used to find the corresponding application;
  • the configuration module 907 obtains a configuration method from the found application according to the name of the configuration method, and performs configuration corresponding to the configuration parameter by using the configuration method, and obtains the configuration result;
  • the sending module 908 is configured to: send the configured result to the client, to parse the configured result by the client, and re-render and render the file content according to the parsing result.
  • the configuration module 907 includes: a first calling unit, configured to: invoke the method interface
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the application on the Android device can be presented to the client without using the HDMI interface, especially solving the limitation that the application cannot be presented in the screenless Android device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种呈现安卓设备上应用程序的方法及装置,其中,所述方法应用于一客户端,包括:向一安卓设备发送一文件请求,所述文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息;接收所述安卓设备根据所述文件请求返回的所请求文件的文件内容;将所述文件内容进行渲染和呈现。

Description

呈现安卓设备上应用程序的方法及装置 技术领域
本文涉及安卓系统的智能嵌入式设备,尤其涉及一种呈现安卓设备上应用程序的方法及装置。
背景技术
安卓系统从最初的手机应用,已逐步向其他领域蔓延,智能机顶盒、智能手表、智能网关等等许多领域。智能机顶盒等展示界面的方式是通过设备上高清晰度多媒体接口(HDMI,High Definition Multimedia Interface),将图形投影到电视机等外围设备中,然而无HDMI接口的安卓系统嵌入式设备中,尤其在无屏安卓设备中,传统应用程序的界面将无法进行展示。
发明内容
本文提供了一种呈现安卓设备上应用程序的方法及装置,以克服无HDMI接口的安卓设备中应用程序无法展示的问题。
一种呈现安卓设备上应用程序的方法,应用于一客户端,包括:向一安卓设备发送一文件请求,所述文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息;接收所述安卓设备根据所述文件请求返回的所请求文件的文件内容;将所述文件内容进行渲染和呈现。
可选的,在将所述文件内容进行渲染和呈现之后,所述方法还包括:接收用户输入的配置参数,并向所述安卓设备发送携带有所述配置参数的配置请求,所述配置请求还携带有配置方法的名称和所述配置方法所属的应用程序的信息;接收所述安卓设备根据所述配置方法执行所述配置参数对应的配置后返回的配置结果;解析所述配置结果,并根据解析得到的解析结果重新渲染和呈现所述文件内容。
一种呈现安卓设备上应用程序的方法,应用于一安卓设备,包括:接收客户端发送的一文件请求,所述文件请求携带有所请求文件的文件名称和所 请求文件所属的应用程序的信息;根据所述所请求文件所属的应用程序,查找对应的应用程序;根据所述所请求文件的文件名称,从查找到的应用程序中读取对应的文件,得到所述文件的文件内容;将读取到的所述文件内容发送至所述客户端,其中,所述文件内容用于通过所述客户端进行渲染和呈现。
可选的,在将读取到的所述文件内容发送至所述客户端之后,所述方法还包括:接收所述客户端发送的携带有配置参数的配置请求,所述配置请求还携带有配置方法的名称和所述配置方法所属的应用程序的信息;根据所述配置方法所属的应用程序的信息,查找对应的应用程序;根据所述配置方法的名称,从查找到的应用程序中得到配置方法,通过所述配置方法执行所述配置参数对应的配置,并获得配置的结果;将配置的结果发送至客户端,以通过客户端解析配置的结果并根据解析结果重新渲染和呈现所述文件内容。
可选的,所述根据所述配置方法的名称,从查找到的应用程序中得到配置方法,通过所述配置方法执行所述配置参数对应的配置,并获得配置的结果,包括:通过远程过程调用协议(RPC,Remote Procedure Call Protocol)接口,调用所述配置方法的名称对应的方法接口,以通过所述方法接口执行所述配置参数对应的配置,并获得配置结果。
可选的,所述根据所述所请求文件的文件名称,从查找到的应用程序中读取对应的文件,得到所述文件的文件内容,包括:通过RPC接口,从查找到的应用程序中读取与所述所请求文件的文件名称对应的文件,得到所述文件的文件内容。
一种呈现安卓设备上应用程序的装置,包括:第一发送模块,设置为:向一安卓设备发送一文件请求,所述文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息;第一接收模块,设置为:接收所述安卓设备根据所述文件请求返回的所请求文件的文件内容;第一呈现模块,设置为:将所述文件内容进行渲染和呈现。
可选的,所述装置还包括:第二发送模块,设置为:接收用户输入的配置参数,并向所述安卓设备发送携带有所述配置参数的配置请求,所述配置请求还携带有配置方法的名称和所述配置方法所属的应用程序的信息;第二 接收模块,设置为:接收所述安卓设备根据所述配置方法执行所述配置参数对应的配置后返回的配置结果;第二呈现模块,设置为:解析所述配置结果,并根据解析得到的解析结果重新渲染和呈现所述文件内容。
一种呈现安卓设备上应用程序的装置,包括:第三接收模块,设置为:接收客户端发送的一文件请求,所述文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息;第一查找模块,设置为:根据所述所请求文件所属的应用程序,查找对应的应用程序;获取模块,设置为:根据所述所请求文件的文件名称,从查找到的应用程序中读取对应的文件,得到所述文件的文件内容;第三发送模块,设置为:将读取到的所述文件内容发送至所述客户端,其中,所述文件内容用于通过所述客户端进行渲染和呈现。
可选的,所述装置还包括:第四接收模块,设置为:接收所述客户端发送的携带有配置参数的配置请求,所述配置请求还携带有配置方法的名称和所述配置方法所属的应用程序的信息;第二查找模块,设置为:根据所述配置方法所属的应用程序的信息,查找对应的应用程序;配置模块,根据所述配置方法的名称,从查找到的应用程序中得到配置方法,通过所述配置方法执行所述配置参数对应的配置,并获得配置的结果;第四发送模块,设置为:将配置的结果发送至客户端,以通过客户端解析配置的结果并根据解析结果重新渲染和呈现所述文件内容。
可选的,所述配置模块包括:第一调用单元,设置为:通过RPC接口,调用所述配置方法的名称对应的方法接口,以通过所述方法接口执行所述配置参数对应的配置,并获得配置结果。
可选的,所述获取模块包括:第二调用单元,设置为:通过RPC接口,从查找到的应用程序中读取与所述所请求文件的文件名称对应的文件,得到所述文件的文件内容。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。
通过本文呈现安卓设备上应用程序的方法及装置可以将安卓设备上的应用程序呈现到客户端,而无需使用HDMI接口,尤其解决了无屏安卓设备中 应用程序无法呈现的局限。
附图概述
图1表示本发明实施例呈现安卓设备上应用程序的方法流程图之一;
图2表示本发明实施例呈现安卓设备上应用程序的方法流程图之二;
图3表示本发明实施例呈现安卓设备上应用程序的方法流程图之三;
图4表示本发明实施例呈现安卓设备上应用程序的方法流程图之四;
图5表示本发明实施例的实际应用示意图之一;
图6表示本发明实施例的实际应用示意图之二;
图7表示本发明实施例呈现安卓设备上应用程序的装置流程图之一;
图8表示本发明实施例呈现安卓设备上应用程序的装置流程图之二;
图9表示本发明实施例呈现安卓设备上应用程序的装置流程图之三;
图10表示本发明实施例呈现安卓设备上应用程序的装置流程图之四。
本发明的实施方式
下面将结合附图对本发明的实施方式进行详细描述。
如图1所示,为本发明实施例呈现安卓设备上应用程序的方法流程图之一,应用于一客户端,在本发明实施例中,该方法包括以下步骤:
步骤S100、向一安卓设备发送一文件请求,文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息。
步骤S200、接收安卓设备根据文件请求返回的所请求文件的文件内容。
步骤S300、将文件内容进行渲染和呈现。
本发明实施例将安卓设备上的应用程序进行呈现,而没有使用HDMI接口。解决了在没有HDMI接口的情况下,无屏安卓设备中应用程序无法呈现的问题。
如图2所示,在本发明的又一个实施例中,为了对呈现的应用程序进行 配置,本发明实施例在上述步骤S300之后还包括以下步骤:
步骤S400、接收用户输入的配置参数,并向安卓设备发送携带有配置参数的配置请求,配置请求还携带有配置方法的名称和配置方法所属的应用程序的信息。
步骤S500、接收安卓设备根据配置方法执行配置参数对应的配置后返回的配置结果。
步骤S600、解析配置结果,并根据解析得到的解析结果重新渲染和呈现文件内容。这里,配置结果可以是带有成功或者失败信息的模型,若配置结果是带有成功信息的模型,客户端重新渲染得到的文件内容和该模型,可以在客户端上呈现“成功”的字样,但也不仅限于此。
如图3所示,在本发明的又一个实施例中,一种呈现安卓设备上应用程序的方法,应用于一安卓设备,包括以下步骤:
步骤S1000、接收客户端发送的一文件请求,文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息。
步骤S2000、根据所请求文件所属的应用程序,查找对应的应用程序。
步骤S3000、根据所请求文件的文件名称,从查找到的应用程序中读取对应的文件,得到该文件的文件内容。
步骤S4000、将读取到的该文件内容发送至客户端,其中,所述文件内容用于通过客户端进行渲染和呈现。
安卓设备通过RPC接口,从查找到的应用程序中读取文件请求中所请求文件的文件名称对应的文件,该文件可以是页面文件,例如超文本标记语言(HTML,Hyper Text Mark-up Language)文件、级联样式表(CSS,Cascading Style Sheets)文件。
如图4所示,在本发明的又一个实施例中,为了对呈现的应用程序进行配置,本发明实施例在上述步骤S4000之后还包括以下步骤:
步骤S5000、接收客户端发送的携带有配置参数的配置请求,配置请求还携带有配置方法的名称和配置方法所属的应用程序的信息。
步骤S6000、根据配置方法所属的应用程序的信息,查找对应的应用程 序。
步骤S7000、根据配置方法的名称,从查找到的应用程序中得到配置方法,通过该配置方法执行配置参数对应的配置,并获得配置的结果。
步骤S8000、将配置的结果发送至客户端,以通过客户端解析配置的结果并根据解析结果重新渲染和呈现文件内容。
请求类型包括文件请求和配置请求,本发明实施例的请求类型为配置请求时,通过RPC接口调用配置方法的名称对应的方法接口,以使该方法接口执行配置参数对应的配置,并获得配置结果。
如图5所示,为本发明实施例的实际应用流程图之一,客户端向所要呈现的应用程序所属安卓设备发送一文件请求,该文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息。该安卓设备的用户界面服务应用程序的监听模块接收文件请求,根据文件请求中所请求文件所属的应用程序的信息确定所要呈现的应用程序,监听模块通过RPC加载该应用程序的用户界面模块下的文件,然后推送给客户端,客户端将收到的文件进行渲染和呈现。
如图6所示,为本发明实施例的实际应用流程图之二,与图5不同的是,客户端发送的请求为配置请求,配置请求还携带有配置方法的名称和配置方法所属的应用程序的信息,监听模块通过RPC调用配置方法的名称对应的接口进行配置,配置所需的参数由配置请求的报文体携带。
如图7所示,在本发明的又一个实施例中,提供了一种呈现安卓设备上应用程序的装置,该装置包括:第一发送模块701、第一接收模块702和第一呈现模块703;第一发送模块701,设置为:向一安卓设备发送一文件请求,文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息;第一接收模块702,设置为:接收安卓设备根据文件请求返回的所请求文件的文件内容;第一呈现模块703,设置为:将文件内容进行渲染和呈现。
通过本发明实施例将安卓设备上的应用程序进行呈现,而没有使用HDMI接口。尤其解决了无屏安卓设备中应用程序无法呈现的局限。
如图8所示,为了对呈现的应用程序进行配置,本发明实施例还设有第二发送模块704、第二接收模块705和第二呈现模块706;第二发送模块704,设置为:接收用户输入的配置参数,并向安卓设备发送携带有配置参数的配置请求,配置请求还携带有配置方法的名称和配置方法所属的应用程序的信息;第二接收模块705,设置为:接收安卓设备根据配置方法执行配置参数对应的配置后返回的配置结果;第二呈现模块706,设置为:解析配置结果,并根据解析得到的解析结果重新渲染和呈现文件内容。
如图9所示,在本发明又一个实施例中,提供了一种呈现安卓设备上应用程序的装置,应用于一安卓设备,该装置包括:第三接收模块901、第一查找模块902、获取模块903和第三发送模块904;第三接收模块901,设置为:接收客户端发送的一文件请求,文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息;第一查找模块902,设置为:根据所请求文件所属的应用程序,查找对应的应用程序;获取模块903,设置为:根据所请求文件的文件名称,从查找到的应用程序中读取对应的文件,得到该文件的文件内容;第三发送模块904,设置为:将读取到的该文件内容发送至客户端,其中,该文件内容用于通过客户端进行渲染和呈现,其中,获取模块903包括:第二调用单元,设置为:通过RPC接口,从查找到的应用程序中读取与所请求文件的文件名称对应的文件,得到该文件的文件内容。
如图10所示,为了对呈现的应用程序进行配置,本发明实施例还设有第四接收模块905、第二查找模块906、配置模块907和第四发送模块908;第四接收模块905,设置为:接收客户端发送的携带有配置参数的配置请求,配置请求还携带有配置方法的名称和配置方法所属的应用程序的信息;第二查找模块906,设置为:根据配置方法所属的应用程序的信息,查找对应的应用程序;配置模块907,根据配置方法的名称,从查找到的应用程序中得到配置方法,通过该配置方法执行配置参数对应的配置,并获得配置的结果;第四发送模块908,设置为:将配置的结果发送至客户端,以通过客户端解析配置的结果并根据解析结果重新渲染和呈现文件内容。其中,配置模块907包括:第一调用单元,设置为:通过RPC接口,调用配置方法的名称对应的方法接口,以通过方法接口执行配置参数对应的配置,并获得配置 结果。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
通过本文呈现安卓设备上应用程序的方法及装置,可以将安卓设备上的应用程序呈现到客户端,而无需使用HDMI接口,尤其解决了无屏安卓设备中应用程序无法呈现的局限。

Claims (13)

  1. 一种呈现安卓设备上应用程序的方法,应用于一客户端,包括:
    向一安卓设备发送一文件请求,所述文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息;
    接收所述安卓设备根据所述文件请求返回的所请求文件的文件内容;
    将所述文件内容进行渲染和呈现。
  2. 如权利要求1所述的方法,在将所述文件内容进行渲染和呈现之后,所述方法还包括:
    接收用户输入的配置参数,并向所述安卓设备发送携带有所述配置参数的配置请求,所述配置请求还携带有配置方法的名称和所述配置方法所属的应用程序的信息;
    接收所述安卓设备根据所述配置方法执行所述配置参数对应的配置后返回的配置结果;
    解析所述配置结果,并根据解析得到的解析结果重新渲染和呈现所述文件内容。
  3. 一种呈现安卓设备上应用程序的方法,应用于一安卓设备,包括:
    接收客户端发送的一文件请求,所述文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息;
    根据所述所请求文件所属的应用程序,查找对应的应用程序;
    根据所述所请求文件的文件名称,从查找到的应用程序中读取对应的文件,得到所述文件的文件内容;
    将读取到的所述文件内容发送至所述客户端,其中,所述文件内容用于通过所述客户端进行渲染和呈现。
  4. 如权利要求3所述的方法,在将读取到的所述文件内容发送至所述客户端之后,所述方法还包括:
    接收所述客户端发送的携带有配置参数的配置请求,所述配置请求还携带有配置方法的名称和所述配置方法所属的应用程序的信息;
    根据所述配置方法所属的应用程序的信息,查找对应的应用程序;
    根据所述配置方法的名称,从查找到的应用程序中得到配置方法,通过所述配置方法执行所述配置参数对应的配置,并获得配置的结果;
    将配置的结果发送至客户端,以通过客户端解析配置的结果并根据解析结果重新渲染和呈现所述文件内容。
  5. 如权利要求4所述的方法,其中,所述根据所述配置方法的名称,从查找到的应用程序中得到配置方法,通过所述配置方法执行所述配置参数对应的配置,并获得配置的结果,包括:
    通过远程过程调用协议RPC接口,调用所述配置方法的名称对应的方法接口,以通过所述方法接口执行所述配置参数对应的配置,并获得配置结果。
  6. 如权利要求3所述的方法,其中,所述根据所述所请求文件的文件名称,从查找到的应用程序中读取对应的文件,得到所述文件的文件内容,包括:
    通过RPC接口,从查找到的应用程序中读取与所述所请求文件的文件名称对应的文件,得到所述文件的文件内容。
  7. 一种呈现安卓设备上应用程序的装置,包括:
    第一发送模块,设置为:向一安卓设备发送一文件请求,所述文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息;
    第一接收模块,设置为:接收所述安卓设备根据所述文件请求返回的所请求文件的文件内容;
    第一呈现模块,设置为:将所述文件内容进行渲染和呈现。
  8. 如权利要求7所述的装置,还包括:
    第二发送模块,设置为:接收用户输入的配置参数,并向所述安卓设备 发送携带有所述配置参数的配置请求,所述配置请求还携带有配置方法的名称和所述配置方法所属的应用程序的信息;
    第二接收模块,设置为:接收所述安卓设备根据所述配置方法执行所述配置参数对应的配置后返回的配置结果;
    第二呈现模块,设置为:解析所述配置结果,并根据解析得到的解析结果重新渲染和呈现所述文件内容。
  9. 一种呈现安卓设备上应用程序的装置,应用于一安卓设备,包括:
    第三接收模块,设置为:接收客户端发送的一文件请求,所述文件请求携带有所请求文件的文件名称和所请求文件所属的应用程序的信息;
    第一查找模块,设置为:根据所述所请求文件所属的应用程序,查找对应的应用程序;
    获取模块,设置为:根据所述所请求文件的文件名称,从查找到的应用程序中读取对应的文件,得到所述文件的文件内容;
    第三发送模块,设置为:将读取到的所述文件内容发送至所述客户端,其中,所述文件内容用于通过所述客户端进行渲染和呈现。
  10. 如权利要求9所述的装置,还包括:
    第四接收模块,设置为:接收所述客户端发送的携带有配置参数的配置请求,所述配置请求还携带有配置方法的名称和所述配置方法所属的应用程序的信息;
    第二查找模块,设置为:根据所述配置方法所属的应用程序的信息,查找对应的应用程序;
    配置模块,根据所述配置方法的名称,从查找到的应用程序中得到配置方法,通过所述配置方法执行所述配置参数对应的配置,并获得配置的结果;
    第四发送模块,设置为:将配置的结果发送至客户端,以通过客户端解析配置的结果并根据解析结果重新渲染和呈现所述文件内容。
  11. 如权利要求10所述的装置,其中,所述配置模块包括:
    第一调用单元,设置为:通过远程过程调用协议RPC接口,调用所述配置方法的名称对应的方法接口,以通过所述方法接口执行所述配置参数对应的配置,并获得配置结果。
  12. 如权利要求9所述的装置,其中,所述获取模块包括:
    第二调用单元,设置为:通过RPC接口,从查找到的应用程序中读取与所述所请求文件的文件名称对应的文件,得到所述文件的文件内容。
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-6任一项的方法。
PCT/CN2015/078301 2014-12-19 2015-05-05 呈现安卓设备上应用程序的方法及装置 WO2016095405A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410803289.0 2014-12-19
CN201410803289.0A CN105760150B (zh) 2014-12-19 2014-12-19 呈现安卓设备上应用程序的方法及装置

Publications (1)

Publication Number Publication Date
WO2016095405A1 true WO2016095405A1 (zh) 2016-06-23

Family

ID=56125758

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078301 WO2016095405A1 (zh) 2014-12-19 2015-05-05 呈现安卓设备上应用程序的方法及装置

Country Status (2)

Country Link
CN (1) CN105760150B (zh)
WO (1) WO2016095405A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110910A (zh) * 2021-04-20 2021-07-13 上海卓易科技股份有限公司 一种安卓容器实现的方法、系统及设备
CN113687888A (zh) * 2021-05-18 2021-11-23 麒麟软件有限公司 在Linux系统上兼容运行Android应用的文件分享方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647514A (zh) * 2012-03-22 2012-08-22 华为终端有限公司 一种无屏无线终端的信息显示方法及装置
CN102799473A (zh) * 2012-06-18 2012-11-28 Tcl集团股份有限公司 一种管理智能显示设备第三方应用的方法及装置
CN103345486A (zh) * 2013-06-24 2013-10-09 积成电子股份有限公司 应用于远程浏览环境下客户端获取和展示图形文件的方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130198266A1 (en) * 2012-01-30 2013-08-01 5O9, Inc. Facilitating communication between web-enabled devices
CN102664939A (zh) * 2012-04-13 2012-09-12 江苏诚迈科技有限公司 一种屏幕镜像移动终端的方法及设备
CN103581759A (zh) * 2013-10-14 2014-02-12 青岛海信传媒网络技术有限公司 智能终端以及多媒体文件传输展示方法和系统
CN103561355B (zh) * 2013-10-28 2018-04-06 乐视致新电子科技(天津)有限公司 一种系统设置方法及电子设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647514A (zh) * 2012-03-22 2012-08-22 华为终端有限公司 一种无屏无线终端的信息显示方法及装置
CN102799473A (zh) * 2012-06-18 2012-11-28 Tcl集团股份有限公司 一种管理智能显示设备第三方应用的方法及装置
CN103345486A (zh) * 2013-06-24 2013-10-09 积成电子股份有限公司 应用于远程浏览环境下客户端获取和展示图形文件的方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110910A (zh) * 2021-04-20 2021-07-13 上海卓易科技股份有限公司 一种安卓容器实现的方法、系统及设备
CN113110910B (zh) * 2021-04-20 2024-01-23 上海卓易科技股份有限公司 一种安卓容器实现的方法、系统及设备
CN113687888A (zh) * 2021-05-18 2021-11-23 麒麟软件有限公司 在Linux系统上兼容运行Android应用的文件分享方法
CN113687888B (zh) * 2021-05-18 2023-08-08 麒麟软件有限公司 在Linux系统上兼容运行Android应用的文件分享方法

Also Published As

Publication number Publication date
CN105760150A (zh) 2016-07-13
CN105760150B (zh) 2020-10-02

Similar Documents

Publication Publication Date Title
US10572581B2 (en) System and method for web content presentation management
US9766955B2 (en) Intelligent mediation of messages in a healthcare product integration platform
US9459862B2 (en) Automated porting of application to mobile infrastructures
CA2841815C (en) Method for associating third party content with online document signing
US8418142B2 (en) Architecture for data validation
CN110162408B (zh) 一种数据处理方法、装置、设备和机器可读介质
US9870411B2 (en) Managing data ingestion
US20150317156A1 (en) Systems and Methods for Automated Generation of Interactive Documentation Based on Web Application Description Language Files
US20150040098A1 (en) Systems and methods for developing and delivering platform adaptive web and native application content
US20190286684A1 (en) Reception device, information processing method in reception device, transmission device, information processing device, and information processing method
US9426202B2 (en) Transforming application cached template using personalized content
CN111447170B (zh) 数据处理方法及其系统、计算机系统及计算机可读介质
CN110019835A (zh) 资源编排方法、装置以及电子设备
CN107491334B (zh) 一种预加载文件的组织和加载方法
US10021166B2 (en) Mechanism for building normalized service model to expose web APIs
WO2016050124A1 (zh) 网页转码方法、装置以及服务器
US10567472B2 (en) Manipulation of PDF files using HTML authoring tools
US9781065B2 (en) Lightweight application integration for mobile cloud computing
US9736222B1 (en) System, method, and computer program for automatically exposing application programming interfaces (APIS) associated with an application server to one or more client devices
US10467332B2 (en) Graphics display capture system
WO2016095405A1 (zh) 呈现安卓设备上应用程序的方法及装置
US20160042041A1 (en) Customized and Automated Dynamic Infographics
US8775555B2 (en) Rest interface interaction with expectation management
US20130290377A1 (en) Populating data structures of software applications with input data provided according to extensible markup language (xml)
US10095801B2 (en) Providing interaction between a first content set and a second content set in a computer system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15868918

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15868918

Country of ref document: EP

Kind code of ref document: A1