WO2012079318A1 - Method and system for displaying native user interface - Google Patents

Method and system for displaying native user interface Download PDF

Info

Publication number
WO2012079318A1
WO2012079318A1 PCT/CN2011/072150 CN2011072150W WO2012079318A1 WO 2012079318 A1 WO2012079318 A1 WO 2012079318A1 CN 2011072150 W CN2011072150 W CN 2011072150W WO 2012079318 A1 WO2012079318 A1 WO 2012079318A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface display
interface
display information
java
virtual machine
Prior art date
Application number
PCT/CN2011/072150
Other languages
French (fr)
Chinese (zh)
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 WO2012079318A1 publication Critical patent/WO2012079318A1/en

Links

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
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present invention relates to the field of communications, and in particular to a local interface display method and system.
  • a Java application (referred to as a MIDlet) is subject to
  • Java standard application program interface API
  • Java virtual machine restrictions the work interface is limited to the inside of the virtual machine.
  • instant messaging applications such as popular IM, QQ, MSN on the market
  • applications such as Email can't display online icons or indicate new messages/new messages through the interface, using body-based and local applications.
  • news applications can be scrolled in a partial window on the standby screen. If you use a Java application, you usually don't have this performance.
  • FIG. 1 is a schematic diagram of implementing an enhanced interface display effect according to the related art.
  • a general extended API mode needs to modify a Java running environment, and an extended API class is added in a Java running environment; After the class is compiled, it needs to be provided to third-party vendors for development and joint debugging in the form of API library or directly integrated into the mobile terminal.
  • MIDlet needs to refer to these new extended API class libraries during development and development.
  • MIDlet development is affected by the development of mobile Java runtime environment, and the risk of progress is increased. Because these extension classes need to interact with local platforms or local applications, the process of porting interfaces obviously requires a certain amount of development work.
  • Similar technologies include the Nokia UI, the Sprint Extension API, and more.
  • the advantage of this approach is that the API is provided in a more standardized way to accommodate complex needs.
  • the disadvantage of extending API classes is that applications that use these APIs either rely on the extended API class library or rely on the Java runtime environment of the target mobile terminal and cannot run in other situations. If the functionality of the extended API class must be supported by the native platform, the MIDlet can only be developed and debugged on the target mobile terminal. If there is no API class library in the development environment, the MIDlet runtime will have a "class not found" problem and cannot be compiled. In most cases, mobile terminals and MIDlets are developed by different vendors.
  • the development and debugging of MIDLet depends on the mobile terminal Java runtime environment, and the development progress will be affected. This situation is more prominent for mobile terminal manufacturers who are taking a customized route for large-scale operators. Because In this case, the MIDlet is usually developed by different third-party vendors, and the requirements of each operator are different. Therefore, the progress coordination between the mobile terminal manufacturer and the third-party MIDlet developer is more difficult.
  • SUMMARY OF THE INVENTION The present invention is directed to a local interface display method and system to solve the problem that the local interface display method in the related art depends on the Java runtime environment of the target terminal or the extended API class library, which affects the development efficiency.
  • An aspect of the present invention provides a local interface display method, including: a Java application sends interface display information to a Java virtual machine, where the interface display information includes: an interface display command; the Java virtual machine will display the interface The display information is transparently transmitted to the local interface interface; the local interface interface displays the local interface according to the interface display information.
  • the sending, by the Java application, the interface display information to the Java virtual machine includes: the Java application transmitting the interface display information to the Java virtual machine through a standard API.
  • the standard API includes a platformRequest function
  • the sending, by the Java application, the interface display command to the Java virtual machine through a standard application program interface API includes: the Java application using the interface display information as a parameter of the platformRequest function , and call the platformRequest function.
  • the Java application uses the interface display information as a parameter of the platformRequest function, including: a parameter format negotiated with the local interface interface, and the Java application constructs the interface display information into a parameter of the platformRequest function.
  • the method further includes: the Java virtual machine throwing an exception indication, and the Java application captures and ignores processing the abnormality indication.
  • the interface display information further includes an extension flag corresponding to the local interface display. Before the Java virtual machine transparently transmits the interface display information to the local interface interface, the method further includes: the Java virtual machine determining to receive the Whether the extended flag in the interface display information is the same as the extended flag corresponding to the local interface display, and if so, the subsequent processing is continued.
  • the interface display information further includes: an interface display parameter corresponding to the interface display command. In a case where the content included in the interface display information exceeds one item, the included content is separated by a preset separator.
  • a local interface display system including: a Java application processor, configured to send interface display information to a Java virtual machine, where the interface display information includes: an interface display command;
  • the virtual machine is configured to transparently transmit the interface display information to the local interface interface, and the local interface interface is configured to perform local interface display according to the interface display information.
  • the Java application processor is configured to send the interface display command to the Java virtual machine via a standard API.
  • the Java virtual machine transparently transmits the interface display information to the local interface interface, so that the local interface interface performs the local interface.
  • the Java runtime environment supports the extended API class library, which affects the development efficiency. It improves the performance of the Java application, and does not depend on the Java runtime environment of the target terminal or the extended API class library, which improves the development efficiency.
  • FIG. 3 is a flowchart of the present invention.
  • FIG. 4 is a schematic diagram of a method for implementing an enhanced interface display effect according to the first embodiment of the present invention.
  • FIG. 5 is a diagram showing a local interface display method according to Embodiment 2.
  • BEST MODE FOR CARRYING OUT THE INVENTION BEST MODE FOR CARRYING OUT THE INVENTION
  • the method includes: Step S202: The Java application sends the interface display information to the Java virtual machine, where the interface display information includes: an interface display command; S204: The Java virtual machine transparently transmits the interface display information to the local interface interface.
  • step S206 the local interface interface displays the local interface according to the interface display information.
  • the local interface display method in the related art depends on the development environment or the Java runtime environment of the target terminal, and the support of the extended API class library causes problems affecting the development efficiency, improves the performance capability of the Java application, and does not depend on the target terminal.
  • the Java runtime environment or development environment supports the extended API class library and improves development efficiency.
  • Java applications can send interface display information to the Java virtual machine through standard APIs. The method only needs to display information through the interface of the standard API, and the Java virtual machine can identify and process the API without any problem, thereby transparently transmitting the interface display information carried therein to the local interface interface. Since the standard API can be supported in all Java runtime environments and MIDlet development environments, this approach no longer relies on extending the API library.
  • the above standard API can be implemented by using the platformRequest function, and the Java application uses the interface display information as a parameter of the platformRequest function, and invokes
  • the method uses the platformRequest function of the MIDP2.0 standard to extend the parameter format of the MIDP2.0 standard, and supports the Java application to pass the display requirements of its local interface through the MIDP standard interface function, interact with the local platform and the local application, and improve the performance capability of the MIDlet. Improve the user experience.
  • the call parameter of the platformRequest function is a URL
  • the Java application can construct the interface display information into the parameters of the platformRequest function according to the parameter format negotiated with the local interface interface. In order to facilitate the development and debugging of the main functions of the Java application, it is considered that the display of the interface does not affect the implementation of these main functions.
  • the Java virtual machine on the development terminal does not support the parameter expansion of the standard API in this embodiment during development.
  • the format, ie, the connection type identifier ( Scheme ) in the URL is not supported, the Java virtual machine can throw an exception indication, and the Java application captures and ignores the handling exception indication.
  • This method brings great convenience to the development of Java applications and improves the efficiency of development.
  • the interface display information may further include an extension flag corresponding to the local interface display, and the Java virtual machine determines to receive the interface display information before the Java virtual machine transparently transmits the interface display information to the local interface interface.
  • the above interface display information may further include: an interface display parameter corresponding to the interface display command.
  • the parameter can be combined with the corresponding interface display command to jointly provide the displayed content to the local interface interface, so that the local interface interface control performs corresponding display.
  • the content may be separated by a preset separator.
  • FIG. 3 is a structural block diagram of a local interface display system according to an embodiment of the present invention.
  • the method includes: a Java application processor 32 configured to send interface display information to a Java virtual machine 34, where the interface displays The information includes: an interface display command; the Java virtual machine 34 is configured to transparently transmit the interface display information to the local interface interface 36; the local interface interface 36 is configured to display the local interface according to the interface display information.
  • the Java application processor 32 can send an interface display command to the Java virtual machine 34 via a standard API.
  • the embodiment 1-3 described below combines the technical solutions of the above plurality of preferred embodiments.
  • Embodiment 1 FIG. 4 is a schematic diagram of a method for implementing an enhanced interface display effect according to the first embodiment of the present invention.
  • the method only needs to increase the implementation of the platformRequest in the migration implementation layer; MIDlet development You only need to use the platformRequest parameter format as agreed. Now, you don't have to wait for the extended API library.
  • the usual extension method there are two main differences: one is to use the standard platfomiRequest interface, and there is only one interface function; the other is to skip the modification of the Java runtime environment, and the MIDlet directly conforms to the format definition of the migration layer. That's it.
  • the method is essentially encapsulated and transparently transmitted by means of the parameters of the standard API; the Java virtual machine running environment only needs to be slightly extended once, and the future expansion does not need to modify the Java virtual machine running environment.
  • the parameter extension is extended, the extended command and the extended parameter format are defined, the MIDlet is supported to interact with the local application or the standby interface, and the icon display and partial of the status bar and the standby interface are completed.
  • the window displays refresh and other functions to improve the performance of the MIDlet.
  • the native platform application is only responsible for interface control, and the displayed content is provided by the Java application.
  • platfomiRequest belongs to the MIDP2.0 standard API, and the Java runtime environment of various mobile terminals can be supported. Since the platfomiRequest function itself is a canonical API, all MIDlet development environments should be supported, and there is no problem with compiling and debugging.
  • the parameter of the platfomiRequest function is a string whose content is usually dialed a telephone number (like "tel: +8613800138000”), or access to a specified web page via an HTTP browser (like "http: //www.google.com” )
  • the platfomiRequest function in the MIDP 2.0 specification defines the following: public final boolean platformRequest(String URL) throws javax.microedition.io.ConnectionNotFoundException The key here is to construct the URL, which is to build Command and parameter string.
  • platformRequestC extension flag + extended command + variable length and number of extended parameters, ;;
  • the extension flag has no other restrictions except that it cannot conflict with the content of the existing standard. For example, it can be defined as zte://.
  • the flag is first judged in the Java virtual machine, for example, tel: a call corresponding to the MIDP standard, and http:// corresponds to a browser call of the MIDP standard. If an extension flag is detected, it is determined that further processing is required, and the virtual machine transparently transmits the parameter string to the local interface interface.
  • the command format requires the Java application to negotiate with the local interface interface in order to properly complete the parsing of the request command and subsequent parameters. Commands include, but are not limited to, "Set New Message Icon", "Set Current Temperature", etc., which are completely defined as needed.
  • the extended parameters must match the corresponding "extension commands" and are designed as needed.
  • the entire code can be written without special API support, and can be developed on any manufacturer's mobile terminal or simulator.
  • the virtual machine throws a ConnectionNotFoundException, and the MIDlet only needs to catch the exception and ignore it. Since the extension function belongs to the MIDlet and the mobile terminal local platform/local application interaction, it is the icing on the cake. If the functions are not implemented on the simulator or the development mobile terminal, the main function development and debugging are not affected. When the MIDlet is developed, you can see the real effect by running on the target mobile terminal.
  • the local interaction functions vary widely, and different platform implementations may be different.
  • FIG. 5 is a schematic diagram of applying the local interface display method to a mobile terminal according to Embodiment 2. As shown in FIG.
  • each application is extended by using the platformRequest parameter, and the reference layer is parsed in the migration layer.
  • the number format distinguishes the location to which the target interface belongs, and then displays the corresponding content to the target location, thereby completing the function of the Java application controlling the local interface display.
  • the instant messaging application displays the status icon of the user "online” or “offline” on the top bar interface of the mobile phone through the “online status update”message; the weather application uses the "weather information update” message, in the window of the standby interface 1
  • the latest weather forecast information is displayed inside; the news reading application scrolls through the news headline content in the window 2 of the standby interface.
  • Embodiment 3 Since there is only one platformRequest function, a string URL can have an unlimited number of formats.
  • zte: ⁇ is an extension flag indicating that the URL is a ZTE extension API call request.
  • the uppercase string separated by a colon SET_PRESENCE_ICON represents the "extension command" that the request is executed.
  • the remaining string after the colon is an extended parameter, status is an integer, representing the icon number, and the MIDlet and the platform developer are required to negotiate the corresponding icon number.
  • the standby interface can also pop up a prompt box to prompt the IM to receive the status of the new message, and use multiple & extended parameters to separate them.
  • the Java statement is as follows:
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any particular combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The present invention provides a method and system for displaying a native user interface (UI). The method comprises: A Java Application sends UI display information to the Java Virtual Machine, wherein said UI display information comprises UI display commands. Said Java Virtual Machine transparently transmits said UI display information to a native UI interface. Said native UI interface displays a native UI according to said UI display information. The invention promotes the performance capability of the Java Application Program without relying on Java Runtime Environment or class library for extended application programming interface (API) on a target terminal, and improves the development efficiency.

Description

本地用户界面显示方法及系统  Local user interface display method and system
技术领域 本发明涉及通信领域, 具体而言, 涉及一种本地界面显示方法及系统。 背景技术 移动终端 Java ME运行环境中, Java应用程序 (称之为 MIDlet ) 由于受TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a local interface display method and system. BACKGROUND OF THE INVENTION In a Java ME running environment, a Java application (referred to as a MIDlet) is subject to
Java标准应用程序接口 ( Application Program Interface, 简称为 API ) 及 Java 虚拟机的限制, 工作界面局限在虚拟机内部。 例如即时通讯应用 (如市面上 流行的 IM、 QQ、 MSN ) 以及 Email等应用在后台运行时, 无法通过界面方 式显示在线图标或者指示收到新消息 /新邮件,使用体-险上和本地应用程序有 一些差距。 此外, 对于像天气预 4艮、 新闻类应用, 可以在待机界面上, 以局 部窗口的方式滚动显示信息, 如果使用 Java应用程序, 通常不具备这种表现 能力。 Java应用程序的这些局限性, 限制了它的使用范围, 部分抵消了 Java 应用程序所具备的跨平台通用的优势。 针对这些问题,可以釆用 Java扩展 API的方式对 Java ME运行环境进行 增强。 图 1是根据相关技术的釆用扩展 API方式实现增强界面显示效果的示 意图, 如图 1所示, 通常的扩展 API方式, 需要修改 Java运行环境, 在 Java 运行环境中增加扩展 API类; 这些扩展类编译后需要以 API库或者直接集成 到移动终端的形式提供给第三方厂商进行开发和联调。 同时, MIDlet在开发 运行时, 都需要引用这些新增的扩展 API类库, 导致 MIDlet开发受到手机 Java运行环境开发的影响, 进度方面风险增大。 这些扩展类由于需要和本地 平台或者本地应用交互,移植接口的过程显然也是需要一定的开发工作量的。 类似的技术包括 Nokia UI、 Sprint Extension API等。 这种方式的好处是 API 提供方式比较规范, 可以适应复杂的需求。 扩展 API类的缺点是使用这些 API的应用程序要么依赖于扩展 API类库, 要么依赖于目标移动终端的 Java 运行环境, 在其他情况下无法运行。 如果扩展 API类的功能必须要本地平台 支持才能实现, 则 MIDlet只能在目标移动终端上才能开发和调试。如果开发 环境下没有 API类库,则 MIDlet运行时就会出现"找不到类"的问题而无法编 译。 大多数情况下, 移动终端和 MIDlet分属不同的厂商开发, MIDLet的开 发调试需要依赖于移动终端 Java运行环境, 开发进度就会受到影响。 这种情 况对于走大规模运营商定制路线的移动终端厂商来说, 问题比较突出。 因为 这种情况下, MIDlet通常属于不同的第三方厂商开发, 而各个运营商的需求 又各不相同,因此移动终端厂商和第三方 MIDlet开发商之间的进度配合就比 较困难。 发明内容 本发明旨在提供一种本地界面显示方法及系统, 以解决相关技术中的本 地界面显示方法依赖于目标终端的 Java运行环境或扩展 API类库导致影响开 发效率的问题。 本发明的一个方面提供了一种本地界面显示方法, 包括: Java应用将界 面显示信息发送给 Java虚拟机, 其中, 所述界面显示信息包括: 界面显示命 令; 所述 Java虚拟机将所述界面显示信息透传到本地界面接口; 所述本地界 面接口 艮据所述界面显示信息进行本地界面显示。 Java standard application program interface (API) and Java virtual machine restrictions, the work interface is limited to the inside of the virtual machine. For example, instant messaging applications (such as popular IM, QQ, MSN on the market) and applications such as Email can't display online icons or indicate new messages/new messages through the interface, using body-based and local applications. There are some gaps in the program. In addition, for weather-like applications, news applications can be scrolled in a partial window on the standby screen. If you use a Java application, you usually don't have this performance. These limitations of Java applications limit its use and partially offset the cross-platform common benefits of Java applications. In response to these problems, the Java ME runtime environment can be enhanced by using the Java extension API. FIG. 1 is a schematic diagram of implementing an enhanced interface display effect according to the related art. As shown in FIG. 1 , a general extended API mode needs to modify a Java running environment, and an extended API class is added in a Java running environment; After the class is compiled, it needs to be provided to third-party vendors for development and joint debugging in the form of API library or directly integrated into the mobile terminal. At the same time, MIDlet needs to refer to these new extended API class libraries during development and development. As a result, MIDlet development is affected by the development of mobile Java runtime environment, and the risk of progress is increased. Because these extension classes need to interact with local platforms or local applications, the process of porting interfaces obviously requires a certain amount of development work. Similar technologies include the Nokia UI, the Sprint Extension API, and more. The advantage of this approach is that the API is provided in a more standardized way to accommodate complex needs. The disadvantage of extending API classes is that applications that use these APIs either rely on the extended API class library or rely on the Java runtime environment of the target mobile terminal and cannot run in other situations. If the functionality of the extended API class must be supported by the native platform, the MIDlet can only be developed and debugged on the target mobile terminal. If there is no API class library in the development environment, the MIDlet runtime will have a "class not found" problem and cannot be compiled. In most cases, mobile terminals and MIDlets are developed by different vendors. The development and debugging of MIDLet depends on the mobile terminal Java runtime environment, and the development progress will be affected. This situation is more prominent for mobile terminal manufacturers who are taking a customized route for large-scale operators. Because In this case, the MIDlet is usually developed by different third-party vendors, and the requirements of each operator are different. Therefore, the progress coordination between the mobile terminal manufacturer and the third-party MIDlet developer is more difficult. SUMMARY OF THE INVENTION The present invention is directed to a local interface display method and system to solve the problem that the local interface display method in the related art depends on the Java runtime environment of the target terminal or the extended API class library, which affects the development efficiency. An aspect of the present invention provides a local interface display method, including: a Java application sends interface display information to a Java virtual machine, where the interface display information includes: an interface display command; the Java virtual machine will display the interface The display information is transparently transmitted to the local interface interface; the local interface interface displays the local interface according to the interface display information.
Java应用将界面显示信息发送给 Java虚拟机包括: 所述 Java应用通过 标准 API将所述界面显示信息发送给所述 Java虚拟机。 所述标准 API包括 platformRequest函数, 所述 Java应用通过标准应用 程序接口 API将所述界面显示命令发送给所述 Java虚拟机包括: 所述 Java 应用将所述界面显示信息作为所述 platformRequest函数的参数, 并调用所述 platformRequest函数。 所述 Java应用将所述界面显示信息作为所述 platformRequest函数的参数 包括: 居与所述本地界面接口协商的参数格式, 所述 Java应用将所述界面 显示信息构造成所述 platformRequest函数的参数。 在所述 Java虚拟机不支持所述参数格式的情况下, 还包括: 所述 Java 虚拟机抛出异常指示, 所述 Java应用捕捉到并忽略处理所述异常指示。 所述界面显示信息还包括与本地界面显示所对应的扩展标志, 在所述 Java虚拟机将所述界面显示信息透传到本地界面接口之前,还包括:所述 Java 虚拟机判断接收到所述界面显示信息中的扩展标志是否与本地界面显示所对 应的扩展标志相同, 若是, 则继续后续处理。 所述界面显示信息还包括: 对应于所述界面显示命令的界面显示参数。 在所述界面显示信息中包含的内容超过一项的情况下, 所述包含的内容 之间釆用预设分隔符隔开。 本发明的另一个方面提供了一种本地界面显示系统, 包括: Java应用处 理器, 设置为将界面显示信息发送给 Java虚拟机, 其中, 所述界面显示信息 包括: 界面显示命令; 所述 Java虚拟机, 设置为将所述界面显示信息透传到 本地界面接口; 所述本地界面接口, 设置为根据所述界面显示信息进行本地 界面显示。 所述 Java应用处理器设置为通过标准 API将所述界面显示命令发送给所 述 Java虚拟机。 通过本发明, Java应用将界面显示信息发送给 Java虚拟机后, Java虚拟 机透传所述界面显示信息到本地界面接口, 以便本地界面接口进行本地界面 The sending, by the Java application, the interface display information to the Java virtual machine includes: the Java application transmitting the interface display information to the Java virtual machine through a standard API. The standard API includes a platformRequest function, and the sending, by the Java application, the interface display command to the Java virtual machine through a standard application program interface API includes: the Java application using the interface display information as a parameter of the platformRequest function , and call the platformRequest function. The Java application uses the interface display information as a parameter of the platformRequest function, including: a parameter format negotiated with the local interface interface, and the Java application constructs the interface display information into a parameter of the platformRequest function. In the case that the Java virtual machine does not support the parameter format, the method further includes: the Java virtual machine throwing an exception indication, and the Java application captures and ignores processing the abnormality indication. The interface display information further includes an extension flag corresponding to the local interface display. Before the Java virtual machine transparently transmits the interface display information to the local interface interface, the method further includes: the Java virtual machine determining to receive the Whether the extended flag in the interface display information is the same as the extended flag corresponding to the local interface display, and if so, the subsequent processing is continued. The interface display information further includes: an interface display parameter corresponding to the interface display command. In a case where the content included in the interface display information exceeds one item, the included content is separated by a preset separator. Another aspect of the present invention provides a local interface display system, including: a Java application processor, configured to send interface display information to a Java virtual machine, where the interface display information includes: an interface display command; The virtual machine is configured to transparently transmit the interface display information to the local interface interface, and the local interface interface is configured to perform local interface display according to the interface display information. The Java application processor is configured to send the interface display command to the Java virtual machine via a standard API. With the present invention, after the Java application sends the interface display information to the Java virtual machine, the Java virtual machine transparently transmits the interface display information to the local interface interface, so that the local interface interface performs the local interface.
Java运行环境对扩展 API类库的支持导致影响开发效率的问题, 提升了 Java 应用程序的表现能力的同时, 无需依赖于目标终端的 Java运行环境或扩展 API类库, 提高了开发效率。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是根据相关技术的釆用扩展 API方式实现增强界面显示效果的示意 图; 图 2是才艮据本发明实施例的本地界面显示方法的流程图; 图 3是 居本发明实施例的本地界面显示系统的结构框图; 图 4是才艮据实施例 1的釆用标准 API实现增强界面显示效果的方法的示 意图; 图 5是才艮据实施例 2的将本地界面显示方法应用于移动终端的示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 图 2是才艮据本发明实施例的本地界面显示方法的流程图, 该方法包括: 步骤 S202, Java应用将界面显示信息发送给 Java虚拟机, 其中, 界面 显示信息包括: 界面显示命令; 步骤 S204 , Java虚拟机将界面显示信息透传到本地界面接口; 步骤 S206, 本地界面接口根据界面显示信息进行本地界面显示。 通过以上的方法, 在 Java应用开发时并不需要在开发环境下提供扩展 API类库的支持, Java应用在目标终端上执行时, 也不需要目标终端的本地 平台支持扩展 API类库, 解决了相关技术中的本地界面显示方法依赖于开发 环境或目标终端的 Java运行环境对扩展 API类库的支持导致影响开发效率的 问题, 提升了 Java应用程序的表现能力的同时, 无需依赖于目标终端的 Java 运行环境或开发环境对扩展 API类库的支持, 提高了开发效率。 在实际应用中, Java应用可以通过标准 API将界面显示信息发送给 Java 虚拟机。 该方法只需要借助标准 API携带界面显示信息, Java虚拟机就可以 无障碍地对该 API进行识别并处理, 从而将其中携带的界面显示信息透传到 本地界面接口。 由于标准的 API在所有的 Java运行环境及 MIDlet开发环境 下都能够被支持, 因此, 这种处理方式不再依赖于扩展 API类库。 优选地, 以上的标准 API可以釆用 platformRequest函数来实现, Java 应用将界面显示信息作为 platformRequest函数的参数, 并调用 The Java runtime environment supports the extended API class library, which affects the development efficiency. It improves the performance of the Java application, and does not depend on the Java runtime environment of the target terminal or the extended API class library, which improves the development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a schematic diagram of an enhanced interface display effect according to the related art; FIG. 2 is a flowchart of a local interface display method according to an embodiment of the present invention; FIG. 3 is a flowchart of the present invention. FIG. 4 is a schematic diagram of a method for implementing an enhanced interface display effect according to the first embodiment of the present invention; FIG. 5 is a diagram showing a local interface display method according to Embodiment 2. A schematic diagram applied to a mobile terminal. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. 2 is a flowchart of a local interface display method according to an embodiment of the present invention. The method includes: Step S202: The Java application sends the interface display information to the Java virtual machine, where the interface display information includes: an interface display command; S204: The Java virtual machine transparently transmits the interface display information to the local interface interface. In step S206, the local interface interface displays the local interface according to the interface display information. Through the above method, it is not necessary to provide support for the extended API class library in the development environment of the Java application development. When the Java application is executed on the target terminal, the local platform of the target terminal is not required to support the extended API class library, and the solution is solved. The local interface display method in the related art depends on the development environment or the Java runtime environment of the target terminal, and the support of the extended API class library causes problems affecting the development efficiency, improves the performance capability of the Java application, and does not depend on the target terminal. The Java runtime environment or development environment supports the extended API class library and improves development efficiency. In practical applications, Java applications can send interface display information to the Java virtual machine through standard APIs. The method only needs to display information through the interface of the standard API, and the Java virtual machine can identify and process the API without any problem, thereby transparently transmitting the interface display information carried therein to the local interface interface. Since the standard API can be supported in all Java runtime environments and MIDlet development environments, this approach no longer relies on extending the API library. Preferably, the above standard API can be implemented by using the platformRequest function, and the Java application uses the interface display information as a parameter of the platformRequest function, and invokes
platformRequest函数。 该方法借助 MIDP2.0标准的 platformRequest函数, 通 过扩展其参数格式,支持 Java应用程序通过 MIDP标准接口函数传递其本地 界面的显示需求,和本地平台及本地应用进行交互,提高 MIDlet的表现能力, 最终提升用户体验。 考虑到 platformRequest函数的调用参数为一 URL, 因此, Java应用将界 面显示信息作为 platformRequest函数的参数的过程中, 可以根据与本地界面 接口协商的参数格式, 将界面显示信息构造成 platformRequest函数的参数。 为了便于 Java应用主要功能的开发和调试,考虑到界面的显示并不影响 这些主要功能的实现, 因此, 在开发时若开发终端上的 Java虚拟机不支持本 实施例中对标准 API的参数扩展格式, 即不支持 URL中的连接类型标识 ( Scheme ), Java虚拟机可以抛出异常指示, Java应用捕捉到并忽略处理异 常指示。这种方法给 Java应用的开发带来了很大的便利,提高了开发的效率。 为了便于 Java虚拟机的处理,界面显示信息还可以包括与本地界面显示 所对应的扩展标志, 在 Java虚拟机将界面显示信息透传到本地界面接口之 前, Java虚拟机判断接收到界面显示信息中的扩展标志是否与本地界面显示 所对应的扩展标志相同, 若是, 则继续后续处理, 否则, 按照接收到的扩展 标志进行相应的后续处理 (例如, tel: 对应于拨打电话, http: //对应于浏览 器调用)。 优选地, 以上的界面显示信息还可以包括: 对应于界面显示命令的界面 显示参数。 该参数可以配合对应的界面显示命令, 共同给本地界面接口提供 显示的内容, 以便本地界面接口控制进行相应显示。 为了便于本地界面接口或 Java虚拟机对接收到的字符串进行解析,在界 面显示信息中包含的内容超过一项的情况下, 可以在包含的内容之间釆用预 设分隔符隔开。 图 3是才艮据本发明实施例的本地界面显示系统的结构框图,如图 3所示, 包括: Java应用处理器 32 , 设置为将界面显示信息发送给 Java虚拟机 34 , 其中, 界面显示信息包括: 界面显示命令; Java虚拟机 34 , 设置为将界面显 示信息透传到本地界面接口 36; 本地界面接口 36 , 设置为根据界面显示信 息进行本地界面显示。 优选地, Java应用处理器 32可以通过标准 API将界面显示命令发送给 Java虚拟机 34。 以下描述的实施例 1-3 , 综合了上述多个优选实施例的技术方案。 实施例 1 图 4是才艮据实施例 1的釆用标准 API实现增强界面显示效果的方法的示 意图, 如图 4所示, 该方法只需要在移植实现层增加 platformRequest的实现 即可; MIDlet开发时只需要按照约定使用 platformRequest参数格式就可以 了, 不必等待扩展 API库。 相对于通常的扩展方式, 有两点主要的差别: 一 是釆用标准的 platfomiRequest接口, 且只有一个接口函数; 二是跳过了 Java 运行环境的修改, MIDlet直接和移植层保持一致的格式定义就可以了。 该方 法本质上是借助标准 API的参数进行封装和透明传递; Java虚拟机运行环境 只需要一次性做微小扩展后, 以后的扩展都不再需要修改 Java虚拟机运行环 境。 基于 Java ME规范 MIDP2.0中已经具有的 platfromRequest函数进行参 数扩展, 定义支持的扩展命令以及扩展参数格式, 支持 MIDlet和本地应用程 序或者待机界面进行交互, 完成状态栏、 待机界面的图标显示和局部窗口显 示刷新等功能, 提高 MIDlet的表现能力。 本地平台应用只负责界面控制, 而 显示的内容是由 Java应用提供。 同时, platfomiRequest属于 MIDP2.0标准 API, 各种移动终端的 Java运行环境均可以支持。 由于 platfomiRequest函数 本身是规范的 API, 所有的 MIDlet开发环境都应该可以支持, 编译调试上都 没有问题。 在 MIDP标准中, platfomiRequest函数的参数是一个字符串, 其内容一 般是拨打一个电话号码 (形如 "tel:+8613800138000" ), 或者是通过 HTTP浏 览器访问一个指定的网页 (形如" http://www.google.com" )„ MIDP2.0规范中 的 platfomiRequest函数定义^口下: public final boolean platformRequest(String URL) throws javax.microedition.io.ConnectionNotFoundException 这里关键的地方就是构造 URL, 也就是构建命令和参数字符串。 作为一 种优选的实施方式, 可以釆用 platformRequestC"扩展标志 +扩展命令 +可变长 度和数量的扩展参数,,;), 具体描述如下: platformRequest function. The method uses the platformRequest function of the MIDP2.0 standard to extend the parameter format of the MIDP2.0 standard, and supports the Java application to pass the display requirements of its local interface through the MIDP standard interface function, interact with the local platform and the local application, and improve the performance capability of the MIDlet. Improve the user experience. Considering that the call parameter of the platformRequest function is a URL, in the process of using the interface display information as a parameter of the platformRequest function, the Java application can construct the interface display information into the parameters of the platformRequest function according to the parameter format negotiated with the local interface interface. In order to facilitate the development and debugging of the main functions of the Java application, it is considered that the display of the interface does not affect the implementation of these main functions. Therefore, the Java virtual machine on the development terminal does not support the parameter expansion of the standard API in this embodiment during development. The format, ie, the connection type identifier ( Scheme ) in the URL is not supported, the Java virtual machine can throw an exception indication, and the Java application captures and ignores the handling exception indication. This method brings great convenience to the development of Java applications and improves the efficiency of development. In order to facilitate the processing of the Java virtual machine, the interface display information may further include an extension flag corresponding to the local interface display, and the Java virtual machine determines to receive the interface display information before the Java virtual machine transparently transmits the interface display information to the local interface interface. Whether the extended flag is the same as the extended flag corresponding to the local interface display, and if so, the subsequent processing is continued; otherwise, the subsequent processing is performed according to the received extended flag (for example, tel: corresponds to making a call, http: // corresponds Called in the browser). Preferably, the above interface display information may further include: an interface display parameter corresponding to the interface display command. The parameter can be combined with the corresponding interface display command to jointly provide the displayed content to the local interface interface, so that the local interface interface control performs corresponding display. In order to facilitate the local interface interface or the Java virtual machine to parse the received string, if the interface display information contains more than one item, the content may be separated by a preset separator. 3 is a structural block diagram of a local interface display system according to an embodiment of the present invention. As shown in FIG. 3, the method includes: a Java application processor 32 configured to send interface display information to a Java virtual machine 34, where the interface displays The information includes: an interface display command; the Java virtual machine 34 is configured to transparently transmit the interface display information to the local interface interface 36; the local interface interface 36 is configured to display the local interface according to the interface display information. Preferably, the Java application processor 32 can send an interface display command to the Java virtual machine 34 via a standard API. The embodiment 1-3 described below combines the technical solutions of the above plurality of preferred embodiments. Embodiment 1 FIG. 4 is a schematic diagram of a method for implementing an enhanced interface display effect according to the first embodiment of the present invention. As shown in FIG. 4, the method only needs to increase the implementation of the platformRequest in the migration implementation layer; MIDlet development You only need to use the platformRequest parameter format as agreed. Now, you don't have to wait for the extended API library. Compared with the usual extension method, there are two main differences: one is to use the standard platfomiRequest interface, and there is only one interface function; the other is to skip the modification of the Java runtime environment, and the MIDlet directly conforms to the format definition of the migration layer. That's it. The method is essentially encapsulated and transparently transmitted by means of the parameters of the standard API; the Java virtual machine running environment only needs to be slightly extended once, and the future expansion does not need to modify the Java virtual machine running environment. Based on the platfromRequest function already in the Java ME specification MIDP2.0, the parameter extension is extended, the extended command and the extended parameter format are defined, the MIDlet is supported to interact with the local application or the standby interface, and the icon display and partial of the status bar and the standby interface are completed. The window displays refresh and other functions to improve the performance of the MIDlet. The native platform application is only responsible for interface control, and the displayed content is provided by the Java application. At the same time, platfomiRequest belongs to the MIDP2.0 standard API, and the Java runtime environment of various mobile terminals can be supported. Since the platfomiRequest function itself is a canonical API, all MIDlet development environments should be supported, and there is no problem with compiling and debugging. In the MIDP standard, the parameter of the platfomiRequest function is a string whose content is usually dialed a telephone number (like "tel: +8613800138000"), or access to a specified web page via an HTTP browser (like "http: //www.google.com" )„ The platfomiRequest function in the MIDP 2.0 specification defines the following: public final boolean platformRequest(String URL) throws javax.microedition.io.ConnectionNotFoundException The key here is to construct the URL, which is to build Command and parameter string. As a preferred implementation, you can use platformRequestC "extension flag + extended command + variable length and number of extended parameters, ;;), as follows:
1 , 定义扩展标志。 扩展标志除不能和已有标准的内容冲突之外, 并无 其他限制, 例如可以定义为 zte://。 在 Java虚拟机中首先判断标志, 例如 tel: 对应于 MIDP标准的拨打电话, http://对应于 MIDP标准的浏览器调用。 如果 检测到扩展标志, 则判断需要进一步处理, 虚拟机透明地将参数字符串传给 本地界面接口。 2, 定义扩展命令。 该命令格式需要 Java应用程序和本地界面接口协商, 以便正确地完成请求命令及后续参数的解析。命令包括但不限于"设置新消息 图标"、 "设置当前温度"等, 完全是根据需要进行定义。 1. Define the extension flag. The extension flag has no other restrictions except that it cannot conflict with the content of the existing standard. For example, it can be defined as zte://. The flag is first judged in the Java virtual machine, for example, tel: a call corresponding to the MIDP standard, and http:// corresponds to a browser call of the MIDP standard. If an extension flag is detected, it is determined that further processing is required, and the virtual machine transparently transmits the parameter string to the local interface interface. 2. Define an extension command. The command format requires the Java application to negotiate with the local interface interface in order to properly complete the parsing of the request command and subsequent parameters. Commands include, but are not limited to, "Set New Message Icon", "Set Current Temperature", etc., which are completely defined as needed.
3 , 定义扩展参数。 扩展参数必须和对应的"扩展命令"相匹配, 也是才艮据 需要进行设计。 3, define the extended parameters. The extended parameters must match the corresponding "extension commands" and are designed as needed.
4, 定义扩展参数分隔符。 由于 platformRequest的参数只是一个字符串, 因此多个扩展参数之间需要定义合适的分隔符, 典型的分隔符可以但不限于 &或者?。 釆用这种方式进行扩展, MIDlet的开发调试比釆用 Java扩展类方式要简 单, 无论是从应用开发还是 Java运行环境开发来说都比较方便, 具体理由如 下: 4. Define the extended parameter separator. Since the parameter of the platformRequest is just a string, you need to define a suitable delimiter between the multiple extension parameters. The typical delimiter can be, but is not limited to, & or? .扩展 Expanding in this way, MIDlet development and debugging is simpler than using the Java extension class. It is convenient from both application development and Java runtime environment development. The specific reasons are as follows:
( 1 ) 应用程序开发时, 整个代码编写不需要特殊 API支持, 在任何厂 商的移动终端上或者模拟器上都可以完成开发。 开发时, 对于移动终端或者 模拟器 Java运行环境不支持的 platformRequest参数格式, 虚拟机会抛出 ConnectionNotFoundException , MIDlet只需要捕捉这个异常并忽略就可以了。 由于扩展功能属于 MIDlet和移动终端本地平台 /本地应用交互, 是锦上添花 的部分, 模拟器或者开发移动终端上如果没有实现这些功能, 也不影响主要 功能开发和调试。 当 MIDlet开发完成后, 在目标移动终端上运行就可以看到 真正的效果了。 ( 2 )对 Java运行环境来说, 本地交互功能千差万别, 而且不同的平台 实现方式也可能不同, 另外, 定制的成分影响也比较大。 但是, 来自于 Java 虚拟机的调用就只有一个接口: platformRequest (因此, 通过该优选的接口 可以使得本方法具有跨平台的优势)。 Java运行环境对应的本地移植接口层 所要故的工作是参数解析和具体实现, 而这一块完全可以和 Java虚拟机核心 的部分分离, 虚拟机部分不需要做任何修改, 定制和代码维护也更加方便。 当项目要求 MIDlet和移动终端需要通过合作方式增加一个新功能时,两方面 的开发可以独立进行, 最后简单联调即可。 实施例 2 图 5是才艮据实施例 2的将本地界面显示方法应用于移动终端的示意图, 如图 5所示, 各个应用使用 platformRequest参数进行扩展, 在移植层解析参 数格式, 区分出目标界面所属的位置, 然后将对应的内容显示到目标位置, 从而完成 Java应用控制本地界面显示的功能。 例如: 即时通讯应用通过 "在线状态更新"消息, 在手机的顶部条界面上显示用 户 "在线"或者"离线"的状态图标; 天气预报应用使用"天气信息更新 "消息, 在待机界面的窗口 1 内显示最 新的天气预报信息; 新闻阅读应用在待机界面的窗口 2内滚动显示新闻标题内容。 实施例 3 由于 platformRequest函数就只有一个, 但字符串 URL可以有无限多种 格式。 此处以举例方式来描述具体实施方式, 但所举的例子只是用于说明, 并不表示本发明只局限于用这种形式去实现。 以即时通讯应用 IM为例, 在移动终端的顶部栏设置在线^! 态图标, 以 Java语言描述, 请求参数 URL构成的语句如下: (1) When developing applications, the entire code can be written without special API support, and can be developed on any manufacturer's mobile terminal or simulator. During development, for the platform request parameter format that is not supported by the mobile terminal or the simulator Java runtime environment, the virtual machine throws a ConnectionNotFoundException, and the MIDlet only needs to catch the exception and ignore it. Since the extension function belongs to the MIDlet and the mobile terminal local platform/local application interaction, it is the icing on the cake. If the functions are not implemented on the simulator or the development mobile terminal, the main function development and debugging are not affected. When the MIDlet is developed, you can see the real effect by running on the target mobile terminal. (2) For the Java runtime environment, the local interaction functions vary widely, and different platform implementations may be different. In addition, the customization components have a greater impact. However, the call from the Java virtual machine has only one interface: platformRequest (so, this preferred interface allows the method to have cross-platform advantages). The local porting interface layer corresponding to the Java runtime environment is parameter parsing and concrete implementation, and this piece can be completely separated from the core part of the Java virtual machine. The virtual machine part does not need to be modified, and the customization and code maintenance are more convenient. . When the project requires the MIDlet and the mobile terminal to add a new function through cooperation, the two aspects of development can be carried out independently, and finally the simple joint debugging can be. Embodiment 2 FIG. 5 is a schematic diagram of applying the local interface display method to a mobile terminal according to Embodiment 2. As shown in FIG. 5, each application is extended by using the platformRequest parameter, and the reference layer is parsed in the migration layer. The number format distinguishes the location to which the target interface belongs, and then displays the corresponding content to the target location, thereby completing the function of the Java application controlling the local interface display. For example: The instant messaging application displays the status icon of the user "online" or "offline" on the top bar interface of the mobile phone through the "online status update"message; the weather application uses the "weather information update" message, in the window of the standby interface 1 The latest weather forecast information is displayed inside; the news reading application scrolls through the news headline content in the window 2 of the standby interface. Embodiment 3 Since there is only one platformRequest function, a string URL can have an unlimited number of formats. The specific embodiments are described herein by way of example only, and are not intended to be construed as limiting. Take the instant messaging application IM as an example, set the online ^ in the top bar of the mobile terminal! State icon, described in the Java language, the statement that the request parameter URL consists of is as follows:
URL = "zte:〃 SET PRESENCE ICON" + ":" + "icon=" + status; 字符串 URL中, zte:〃 是扩展标志, 表示这个 URL是 ZTE扩展 API调 用请求。 后面冒号分隔出的大写字符串 SET_PRESENCE_ICON代表请求执 行的"扩展命令"。 冒号后面剩余的字符串是扩展参数, status是一个整数, 代 表图标编号, 需要 MIDlet和平台开发人员协商好对应的图标编号。 除顶部条显示图标之外, 待机界面还可以弹出提示框, 提示 IM收到新 消息的状态, 多条扩展参数之间使用了 &进行分隔。 Java语句如下: URL = "zte:〃 SET PRESENCE ICON" + ":" + "icon=" + status; In the string URL, zte:〃 is an extension flag indicating that the URL is a ZTE extension API call request. The uppercase string separated by a colon SET_PRESENCE_ICON represents the "extension command" that the request is executed. The remaining string after the colon is an extended parameter, status is an integer, representing the icon number, and the MIDlet and the platform developer are required to negotiate the corresponding icon number. In addition to the top bar display icon, the standby interface can also pop up a prompt box to prompt the IM to receive the status of the new message, and use multiple & extended parameters to separate them. The Java statement is as follows:
URL = "zte:〃 SET POPUP" + ":" + URL = "zte:〃 SET POPUP" + ":" +
"msnNew=" + msnNewMsgCount + "&" + "msnNew=" + msnNewMsgCount + "&" +
"aolNew=" + aolNewMsgCount + "&" + "aolNew=" + aolNewMsgCount + "&" +
"yahooNew=" + yahooNewMsgCount; 这里列举的参数格式, 用于说明 MIDlet和本地界面交互的命令格式。对 于 MIDlet来说, 调用 platfromRequest形式 口下: try{ platformRequest(URL); "yahooNew=" + yahooNewMsgCount; The parameter format listed here is used to describe the command format for interaction between the MIDlet and the local interface. For the MIDlet, call the platfromRequest form: Try{ platformRequest(URL);
}catch(ConnectionNotFoundException ex) { } 调用 platformRequestO函数, 并忽略抛出的异常。 从以上的描述中, 可以看出, 以上实施例提供的方案技术复杂度低, 简 单易行。 在实践时, 可以轻易地实现需要的功能, 并且很容易扩展。 当虚拟 机集成了扩展标志识别之后, 以后的扩展命令爹改不需要再对 Java虚拟机核 心代码进行任何改动, 只需要在移植层和本地层进行爹改。 因此, 该方式尤 其适合 JVM运行环境外购的情况 (例如移动终端厂商外购其他公司的以二 进制形式提供的 Java模块),移动终端厂商基本不需要 JVM提供商修改 JVM 核心模块。对于大量运营商定制的移动终端项目和有较多预装第三方 Java应 用的情况来说, 整体开发调试效率提升明显。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而可以将它们存储在存储装置中由计算装置来执行, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 }catch(ConnectionNotFoundException ex) { } Calls the platformRequestO function and ignores the thrown exception. It can be seen from the above description that the solution provided by the above embodiment has low technical complexity and is simple and easy to implement. In practice, the required functionality can be easily implemented and easily extended. After the virtual machine integrates the extended flag recognition, the subsequent extended command tampering does not require any changes to the Java virtual machine core code, and only needs to be tampered with at the migration layer and the local layer. Therefore, this method is especially suitable for the outsourcing of the JVM operating environment (for example, the mobile terminal manufacturer outsources the Java modules provided by other companies in binary form), and the mobile terminal manufacturer basically does not need the JVM provider to modify the JVM core module. For a large number of operators customized mobile terminal projects and more pre-installed third-party Java applications, the overall development and debugging efficiency is significantly improved. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any particular combination of hardware and software. The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种本地界面显示方法, 包括: 1. A local interface display method, including:
Java应用将界面显示信息发送给 Java虚拟机, 其中, 所述界面显 示信息包括: 界面显示命令;  The Java application sends the interface display information to the Java virtual machine, where the interface display information includes: an interface display command;
所述 Java虚拟机将所述界面显示信息透传到本地界面接口; 所述本地界面接口根据所述界面显示信息进行本地界面显示。  The Java virtual machine transparently transmits the interface display information to the local interface interface; the local interface interface performs local interface display according to the interface display information.
2. 根据权利要求 1所述的方法, 其中, Java应用将界面显示信息发送给 Java虚拟机包括: 2. The method according to claim 1, wherein the sending, by the Java application, the interface display information to the Java virtual machine comprises:
所述 Java应用通过标准应用程序接口 API将所述界面显示信息发 送给所述 Java虚拟机。  The Java application sends the interface display information to the Java virtual machine via a standard application interface API.
3. 根据权利要求 2所述的方法,其中,所述标准 API包括 platformRequest 函数, 所述 Java应用通过标准 API将所述界面显示命令发送给所述 Java虚拟机包括: 3. The method of claim 2, wherein the standard API comprises a platformRequest function, and the sending, by the Java application, the interface display command to the Java virtual machine via a standard API comprises:
所述 Java应用将所述界面显示信息作为所述 platformRequest函数 的参数, 并调用所述 platformRequest函数。  The Java application uses the interface display information as a parameter of the platformRequest function and invokes the platformRequest function.
4. 根据权利要求 3所述的方法, 其中, 所述 Java应用将所述界面显示信 息作为所述 platformRequest函数的参数包括: The method according to claim 3, wherein the Java application uses the interface display information as a parameter of the platformRequest function, including:
根据与所述本地界面接口协商的参数格式, 所述 Java应用将所述 界面显示信息构造成所述 platformRequest函数的参数。  The Java application constructs the interface display information into parameters of the platformRequest function according to a parameter format negotiated with the local interface interface.
5. 居权利要求 4所述的方法, 其中, 在所述 Java虚拟机不支持所述参 数格式的情况下, 还包括: 5. The method of claim 4, wherein, in the case that the Java virtual machine does not support the parameter format, the method further includes:
所述 Java虚拟机抛出异常指示,所述 Java应用捕捉到并忽略处理 所述异常指示。  The Java virtual machine throws an exception indication that the Java application captures and ignores processing the exception indication.
6. 根据权利要求 1所述的方法, 其中, 所述界面显示信息还包括与本地 界面显示所对应的扩展标志, 在所述 Java虚拟机将所述界面显示信息 透传到本地界面接口之前, 还包括: 所述 Java虚拟机判断接收到所述界面显示信息中的扩展标志是否 与本地界面显示所对应的扩展标志相同, 若是, 则继续后续处理。 The method of claim 1, wherein the interface display information further comprises an extension flag corresponding to the local interface display, before the Java virtual machine transparently transmits the interface display information to the local interface interface, Also includes: The Java virtual machine determines whether the extended flag in the interface display information is the same as the extended flag corresponding to the local interface display, and if so, continues the subsequent processing.
7. 根据权利要求 1所述的方法, 其中, 所述界面显示信息还包括: 对应 于所述界面显示命令的界面显示参数。 The method according to claim 1, wherein the interface display information further comprises: an interface display parameter corresponding to the interface display command.
8. 根据权利要求 1至 7中任一项所述的方法, 其中, 在所述界面显示信 息中包含的内容超过一项的情况下, 所述包含的内容之间釆用预设分 隔符隔开。 The method according to any one of claims 1 to 7, wherein, in a case where the content included in the interface display information exceeds one item, the included content is separated by a preset separator open.
9. 一种本地界面显示系统, 包括: 9. A local interface display system, comprising:
Java应用处理器, 设置为将界面显示信息发送给 Java虚拟机, 其 中, 所述界面显示信息包括: 界面显示命令;  The Java application processor is configured to send the interface display information to the Java virtual machine, where the interface display information includes: an interface display command;
所述 Java虚拟机, 设置为将所述界面显示信息透传到本地界面接 α; 所述本地界面接口, 设置为根据所述界面显示信息进行本地界面 显示。 根据权利要求 9所述的系统, 其中, 所述 Java应用处理器设置为通过 标准应用程序接口 API将所述界面显示命令发送给所述 Java虚拟机。  The Java virtual machine is configured to transparently transmit the interface display information to the local interface, and the local interface interface is configured to perform local interface display according to the interface display information. The system of claim 9, wherein the Java application processor is configured to send the interface display command to the Java virtual machine via a standard application interface API.
PCT/CN2011/072150 2010-12-17 2011-03-25 Method and system for displaying native user interface WO2012079318A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105944868A CN102033774A (en) 2010-12-17 2010-12-17 Local interface display method and system
CN201010594486.8 2010-12-17

Publications (1)

Publication Number Publication Date
WO2012079318A1 true WO2012079318A1 (en) 2012-06-21

Family

ID=43886708

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/072150 WO2012079318A1 (en) 2010-12-17 2011-03-25 Method and system for displaying native user interface

Country Status (2)

Country Link
CN (1) CN102033774A (en)
WO (1) WO2012079318A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250479A (en) * 2016-07-29 2016-12-21 乐视控股(北京)有限公司 The display packing of page title content, device and electric terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080144796A1 (en) * 2005-03-18 2008-06-19 Ringland Simon P A Establishing Communications Sessions
US20100306759A1 (en) * 2009-05-28 2010-12-02 Yahoo! Inc. System for packaging native program extensions together with virtual machine applications

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100472439C (en) * 2007-09-20 2009-03-25 中兴通讯股份有限公司 Human-machine interface localization method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080144796A1 (en) * 2005-03-18 2008-06-19 Ringland Simon P A Establishing Communications Sessions
US20100306759A1 (en) * 2009-05-28 2010-12-02 Yahoo! Inc. System for packaging native program extensions together with virtual machine applications

Also Published As

Publication number Publication date
CN102033774A (en) 2011-04-27

Similar Documents

Publication Publication Date Title
US10831987B2 (en) Computer program product provisioned to non-transitory computer storage of a wireless mobile device
US9021468B1 (en) Bundling extension installation with web browser installation
JP5646687B2 (en) Adaptive streaming for on-demand wireless services
JP5241440B2 (en) System and method for creating and communicating with component-based wireless applications
CN102291437A (en) System and method for realizing application of cross-platform internet
WO2023093429A1 (en) Micro-application running method and apparatus, and device, storage medium and program product
WO2020168568A1 (en) Data processing method and apparatus, electronic device and readable storage medium
CN111427594B (en) Application program running method and device
CN115827112B (en) System and method for running android application program on Web operating system
CN114339332A (en) Mobile terminal, display device and cross-network screen projection method
WO2012001456A2 (en) System and method for providing end to end interactive mobile applications using sms
WO2024087767A1 (en) Upgrade installation method and apparatus, system, electronic device, and storage medium
KR101482149B1 (en) Apparatus for executing application, method thereof and computer recordable medium storing the method
WO2012079318A1 (en) Method and system for displaying native user interface
CN110389791B (en) Component scheduling method, device, equipment and storage medium
KR101000195B1 (en) Mobile device and method of providing mobile widget service by the mobile device
WO2015196541A1 (en) Script processing method and device
CN115826994A (en) Method and device for deploying micro-service project and storage medium
KR20110122995A (en) Apparatus for executing application, method thereof and computer recordable medium storing the method
KR20070059864A (en) Open service verification apparatus and method
Debbabi et al. Java ME Platform
KR20130095668A (en) Method for executing hybirid web application and apparatus therefor
JP2008033537A (en) Linkage operation method and communication terminal device

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: 11848098

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: 11848098

Country of ref document: EP

Kind code of ref document: A1