Patent ID: 11966734
Assignee: REALTEK SEMICONDUCTOR CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method for developing an Android television (TV) hybrid application to be performed by an Android TV, the method comprising following steps:
generating an Android WebView component in an Android Activity, wherein the Android Activity belongs to an Android side of the Android TV hybrid application;
obtaining a WebSettings subclass and using the WebSettings subclass to configure the Android WebView component;
using Web technologies to develop a Web page of the Android TV hybrid application, wherein the Web page belongs to a Web side of the Android TV hybrid application;
using the Android WebView component to load the Web page and display the Web page;
creating a first Java object in the Android side to define at least one interface between the Android side and the Web side and creating a second Java object in the Android side to implement the at least one interface defined by the first Java object, and thereby allowing the Web side to call functions in the Android side through the first Java object and the second Java object; and
embedding a packaged Java class in the Android side to send messages to the Web side and embedding a packaged JavaScript module in the Web side to handle the messages, and thereby allowing the Android side to feedback the messages to the Web side through the packaged Java class and the packaged JavaScript module, wherein the packaged JavaScript module's main duty is maintaining a listener list.