Method for developing Android TV hybrid application
Abstract:
A method for developing an Android TV hybrid application includes: generating a WebView component in an Android Activity belonging to an Android side of the application; obtaining a WebSettings subclass and using it to configure the WebView component; using Web technologies to develop a Web page belonging to a Web side of the application; using the WebView component to show the Web page; creating a first Java object blended with a JavaScript context in the Android side to define different interfaces, and creating a second Java object to implement the interfaces defined by the first Java object, so that the Web side can call the functions of the Android side; providing a packaged Java class in the Android side to send messages, and providing a packaged JavaScript module in the Web side to process the messages, so that the Android side can feedback the messages to the Web side.
Public/Granted literature
Information query
Patent Agency Ranking
0/0