WO2012106955A1 - Widget信息处理方法、装置、服务器及系统 - Google Patents

Widget信息处理方法、装置、服务器及系统 Download PDF

Info

Publication number
WO2012106955A1
WO2012106955A1 PCT/CN2011/080134 CN2011080134W WO2012106955A1 WO 2012106955 A1 WO2012106955 A1 WO 2012106955A1 CN 2011080134 W CN2011080134 W CN 2011080134W WO 2012106955 A1 WO2012106955 A1 WO 2012106955A1
Authority
WO
WIPO (PCT)
Prior art keywords
widget
information
client
location information
current location
Prior art date
Application number
PCT/CN2011/080134
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 WO2012106955A1 publication Critical patent/WO2012106955A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present invention relates to the field of communications, and in particular to a Widget (window widget or widget) information processing method, apparatus, server, and system.
  • Widget window widget or widget
  • Wireless positioning technology develops rapidly with time, and combined with existing terminal business application services, can provide a new mode of modern service information based on location information for a large number of users, bringing a relatively high-end user experience. And gradually penetrate into all aspects of people's daily lives, is becoming an indispensable service in life.
  • Widget application can effectively customize information according to user needs. Because it is easy for users to use, it is more and more popular in PCs and terminal devices, and its application range is more and more, from information, entertainment, instant.
  • Widget business especially the mobile Internet Widget business
  • Communication tools, etc. have appeared more and more Widget business, especially the mobile Internet Widget business, because it can use the mobile Internet to provide users with real-time information, which can bring users a fresher user experience.
  • the user often needs to manually set the current location to obtain information, which is complicated in operation, which causes great inconvenience to the user and reduces the user experience.
  • the location-sensitive Widget application in the related art the user often needs to manually set the current location and then obtain the information, which is complicated in operation, brings great inconvenience to the user, and reduces the user experience.
  • no effective solution has been proposed. .
  • the present invention is directed to a Widget information processing method, apparatus, server, and system for solving a location-sensitive Widget application in a related art, which often requires a user to manually set a current location and then obtain information, which is complicated to operate. It brings a lot of inconvenience and reduces the user experience.
  • a Widget information processing method including: when a Widget client acquires or runs a Widget application, the Widget client obtains current location information; and the Widget client applies a corresponding to the Widget application.
  • the server sends a request message, and the request message carries the The front location information; the Widget client receives the Widget information sent by the server, and the Widget information is determined by the server according to the characteristics of the Widget application and the current location information.
  • the Widget client obtains current location information, including: the Widget client determines whether a location element indicating location information exists; and when the Location element does not exist, the Widget client adds in itself The Location element; when the Location element exists, the Widget client acquires the current location information, and writes the current location information into the Location element.
  • the Widget client determines whether the location element indicating the location information exists, and includes at least one of the following: the Widget client determines whether the Location element is missing; and the Widget client determines whether the Location element is Initializing; the Widget client determines whether the Location element matches the current location information.
  • the Widget client sends a request message to the server corresponding to the Widget application, the method includes: when the current location information is changed, the Widget client resends a request message to a server corresponding to the Widget application, And carrying the changed current location information in the resent request message.
  • a Widget information processing method including: a server corresponding to a Widget application receiving a request message sent by a Widget client, where the request message carries current location information of the Widget client; The server determines the Widget information according to the characteristics of the Widget application and the current location information, and sends the Widget information to the Widget client.
  • a Widget information processing method including: when a Widget client obtains or runs a Widget application, the Widget client obtains current location information; and the Widget client sends the Widget client to the Widget
  • the application server sends a request message, where the request message carries the current location information; the server receives the request message sent by the Widget client, and determines the location according to the characteristics of the Widget application and the current location information.
  • the Widget information is sent to the Widget client; the Widget client receives the Widget information.
  • a Widget information processing apparatus which is integrated in a Widget client, and includes: an obtaining module, configured to acquire current location information when the Widget client acquires or runs a Widget application; a module, configured to send a request message to a server corresponding to the Widget application, where the request message carries the current location information; a first receiving module, configured to receive Widget information sent by the server, where the Widget information is The server determines according to the characteristics of the Widget application and the current location information.
  • the obtaining module comprises: a determining submodule, configured to determine a location indicating location information.
  • the sending module is further configured to: when the current location information is changed, send a request message to the server corresponding to the Widget application, and carry the changed current location information in the resent request message.
  • a server including: a second receiving module, configured to receive a request message sent by a Widget client, where the request message carries current location information of the Widget client; And determining, according to the characteristics of the Widget application and the current location information, the Widget information, and sending the Widget information to the Widget client.
  • a Widget information processing system including a Widget client that acquires or runs a Widget application and a server corresponding to the Widget application: the Widget client is set to acquire or run a Widget application.
  • the Widget client when the Widget client obtains or runs the Widget application, the Widget client obtains the current location information; the Widget client sends a request message to the corresponding server of the Widget application, where the request message carries the current obtained by the Widget client.
  • the Widget client receives the Widget information sent by the server, and the Widget information is determined by the server according to the characteristics of the Widget application and the current location information obtained by the Widget client.
  • the Widget client can obtain the current location information, and push the Widget information for the current location to the user, that is, the Widget application can automatically update the information according to the change of the location, without manually setting the current location. After getting the information, the operation is simplified, and it will increase its intelligence and improve the usability of the Widget application.
  • FIG. 1 is a flowchart of processing of a first Widget information processing method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of processing for acquiring a current location information by a Widget client according to an embodiment of the present invention
  • FIG. 3 is a flowchart according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of processing of a third Widget information processing method according to an embodiment of the present invention
  • FIG. 5 is a functional block diagram of a Widget client according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a process for updating the content of a Location element in Embodiment 3 according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a device for processing a Widget according to an embodiment of the present invention
  • FIG. 9 is a schematic structural diagram of a server according to an embodiment of the present invention
  • FIG. 10 is a schematic structural diagram of a Widget information processing system according to an embodiment of the present invention.
  • an embodiment of the present invention provides a window-based Widget information processing method, and the processing flow thereof is as shown in FIG.
  • Step S102 When a Widget client acquires or runs a Widget application, the Widget client obtains The current location information is obtained.
  • Step S104 The Widget client sends a request message to the server corresponding to the Widget application, where the request message carries the current location information obtained by the Widget client.
  • Step S106 The Widget client receives the Widget information sent by the server, and the Widget information is The server determines the characteristics of the Widget application and the current location information obtained by the Widget client.
  • the Widget client when the Widget client obtains or runs the Widget application, the Widget client obtains the current location information; the Widget client sends a request message to the corresponding server of the Widget application, where the request message carries the current obtained by the Widget client. Location information; The Widget client receives the Widget information sent by the server, and the Widget information is determined by the server according to the characteristics of the Widget application and the current location information obtained by the Widget client.
  • the Widget client can obtain the current location information, and push the Widget information for the current location to the user, that is, the Widget application can automatically update the information according to the change of the location, without manually setting the current location. After getting the information, the operation is simplified, and it will increase its intelligence and improve the usability of the Widget application.
  • the Widget client obtains the current location information, which may include the process shown in FIG.
  • Step S202 The Widget client determines whether the location element indicating the location information exists; Step S204: When the Location element does not exist The Widget client adds a Location element in itself; Step S206: When the Location element exists, the Widget client obtains the current location information, and writes the current location information to the Location element.
  • the Location element is just an example, used to represent location information, and other locations or attributes can be used to represent location information.
  • the embodiment of the present invention needs to add an element or attribute indicating location information to the widget client.
  • the element or attribute can be named as "Locations Widget client.
  • the Widget client When the client runs a Widget application, the Widget client first determines whether the Location element is Exist, if it does not exist, add this element or attribute, and write the current location information to the Location element or attribute through the location information acquisition module. When the Widget client sends the request information to the server, read the configuration in the Widget client. The Location information in the file, and the Location information is sent to the server as part of the request information. Once the location of the terminal changes, the Widget client obtains the latest location information of the terminal through the location information acquisition module, and then writes the latest location information to the location information. The Widget client's configuration file Location element or attribute, and sends a request containing the Location information to the server. When implemented, the Widget client determines whether the Location element indicating the location information exists, including at least one of the following:
  • the Widget client determines if the Location element is missing
  • the Widget client determines whether the Location element is initialized
  • the Widget client determines if the Location element matches the current location information.
  • the Widget client sends a request message to the server corresponding to the Widget application, including: when the current location information changes, the Widget client resends the request message to the corresponding server of the Widget application, and retransmits the request message.
  • the current location information after the change is carried. Since the current location information carried in the request message is changed, the Widget information determined by the server according to the characteristics of the Widget application and the current location information obtained by the Widget client is also changed accordingly, so that the Widget application can automatically update the information according to the change of the location.
  • the embodiment of the present invention further provides another Widget information processing method, and the processing flow thereof is as shown in FIG. 3, including: Step S302: The server corresponding to the Widget application receives the request message sent by the Widget client, and the request message Carrying the current location information of the Widget client; Step S304: The server determines the Widget information according to the characteristics of the Widget application and the current location information, and sends the Widget information to the Widget client.
  • Step S402 When the Widget client obtains or runs the Widget application, the Widget client obtains the current location information.
  • Step S404 The Widget client sends a request message to the corresponding server of the Widget application, where the request message carries the current location information.
  • Step S406 The server receives the request message sent by the Widget client, and determines the Widget according to the characteristics of the Widget application and the current location information. The information is sent to the Widget client.
  • Step S408 The Widget client receives the Widget information.
  • Embodiment 1 When the Widget client obtains or runs one or more Widget applications, the Widget client obtains the current location information through the system or the positioning module, or the system or the positioning module notifies the location information of the Widget client user, the Widget client. Save it to the element or attribute in the Widget client configuration file that represents the location information.
  • the Widget client will send the configuration file when the Widget application sends the request information to the server.
  • the location information is sent to the server as part of the request body, and the server returns the content corresponding to the location information to the widget client according to the user location information carried by the request body, and the widget client parses according to the characteristics of the widget application. And presented to the user through the widget application.
  • the Widget client updates the location information in the configuration file and resends the request to the server, thereby achieving the purpose of automatically updating the content of the Widget application.
  • the location information in the Widget client is shared by all Widget applications, so you can achieve the effect of updating multiple Widget applications at the same time.
  • the second embodiment is to implement the Widget information processing method provided by the embodiment of the present invention.
  • the Widget client should include at least the following five functional modules: a positioning information acquiring module, a configuration file content updating module, a request body structure module, a network interaction module, and a Widget information. Parsing module.
  • the function of each function module is as follows:
  • the location information obtaining module 501 is responsible for obtaining the location information of the current terminal and the location information of the intercepting terminal through the system or the positioning module. After obtaining the positioning information, the configuration file content update module 502 is notified; the configuration file content update module 502-- is responsible for updating the configuration file content of the Widget client, and ensuring that the configuration file Location information is consistent with the current terminal location information.
  • the request body construction module 503 is notified; the request body construction module 503-- is responsible for constructing a server request that meets the requirements, and the request includes location information.
  • the network interaction module 504 is notified; the network interaction module 504 is responsible for the request constructed from the request body construction module 503, sent to the server, and is responsible for receiving the information returned by the server, and then notifying the widget information parsing module 505;
  • the Widget information parsing module 505-- is responsible for parsing the information returned by the server and constructing it into a form required by the user, and the process basically ends.
  • the flow of the method for updating the content of the Location element of the Widget client after running a Widget client is as shown in FIG. 6.
  • the method includes: Step S602: The wireless terminal runs the Widget application, and performs Step S604; Step S604, determining whether the client Location element or attribute exists, if yes, executing step S606, if not, executing step S608; step S606, adding a Location element or attribute in the Widget client configuration file, executing step S608; Step S608, calling the positioning module interface to initialize the Location element or attribute, performing step S610; Step S610, sending a request to the server, including the Location content in the request, performing step S612; Step S612, displaying the information returned by the server to the user, executing Step S614; Step S614, the process ends.
  • the embodiment of the present invention further provides a Widget information processing device, which is configured as shown in FIG. 7 and integrated in the Widget client, and includes: an obtaining module 701, configured to acquire or run a Widget when the Widget client is configured. When the application is used, the current location information is obtained.
  • the sending module 702 is configured to send a request message to the server corresponding to the Widget application, where the request message carries the current location information.
  • the first receiving module 703 is configured to receive the Widget information sent by the server.
  • the Widget information is determined by the server according to the characteristics of the Widget application and the current location information.
  • the obtaining module 701 may include: a determining submodule 801, configured to determine whether a location location element indicating location information exists; adding a submodule 802, configured to when the Location element does not exist, Add a Location element in itself; Write sub-module 803, set to obtain the current location information when the Location element exists, and write the current location information to the Location element.
  • the sending module 702 may be further configured to: when the current location information changes, resend the request message to the corresponding server of the Widget application, and carry the changed current location information in the resent request message.
  • an embodiment of the present invention further provides a server.
  • the structure is as shown in FIG. 9.
  • the second receiving module 901 is configured to receive a request message sent by a Widget client, where the request message carries a Widget client.
  • the current location information of the terminal; the determining module 902 is configured to determine the Widget information according to the characteristics of the Widget application and the current location information, and send the Widget information to the Widget client.
  • an embodiment of the present invention further provides a Widget information processing system, which is configured as shown in FIG.
  • Widget client 1001 that acquires or runs a Widget application and a server 1002 corresponding to a Widget application: a Widget client 1001. , set to get or run the Widget application, get the current location information;
  • the server corresponding to the Widget application sends a request message, where the request message carries the current location information; and receives the Widget information sent by the server; the server 1002 is configured to receive the request message, determine the Widget information according to the characteristics of the Widget application and the current location information, and Widget information is sent to the Widget client.
  • the corresponding server sends a request message, where the request message carries the current location information obtained by the Widget client; the Widget client receives the Widget information sent by the server, and the Widget information is determined by the server according to the characteristics of the Widget application and the current location information obtained by the Widget client. .
  • the Widget client can obtain the current location information, and push the Widget information for the current location to the user, that is, the Widget application can automatically update the information according to the change of the location, without manually setting the current location. After getting the information, the operation is simplified, and it will increase its intelligence and improve the usability of the Widget application.
  • 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.
  • the invention is not limited to any specific combination of hardware and software.
  • the above 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 spirit and scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了Widget信息处理方法、装置、服务器及系统,该方法包括:当Widget客户端获取或运行Widget应用时,Widget客户端获取当前位置信息;Widget客户端向Widget应用对应的服务器发送请求消息,请求消息中携带有当前位置信息;Widget客户端接收服务器发送的Widget信息,Widget信息由服务器根据Widget应用的特性及所述当前位置信息确定。采用本发明能够自动根据位置的变化更新Widget信息。

Description

Widget信息处理方法、 装置、 服务器及系统 技术领域 本发明涉及通信领域, 具体而言, 涉及一种 Widget (窗口小部件或窗件) 信息处 理方法、 装置、 服务器及系统。 背景技术 无线定位技术随着时间飞速发展, 并且与现有的终端商业应用服务相结合, 能够 为广大用户提供一种基于位置信息的新型现代服务信息的模式, 带来了比较高端的用 户体验, 并逐步渗透到人们日常生活的方方面面, 正在成为生活中不可缺少的一种服 务。 Widget应用作为一个发展迅速的业务, 它能有效针对用户需求定制信息, 由于其 便于用户操作使用,在个人电脑以及终端设备中越来越普及,应用范围也越来越广泛, 从信息, 娱乐, 即时交流工具等, 都出现了越来越多的 Widget业务, 特别是移动互联 网 Widget业务, 因为它能利用移动互联网给用户提供实时信息, 能带给用户比较新鲜 的用户体验。 但是, 对于位置敏感的 Widget应用, 往往需要用户手动去设置当前位置后再获取 信息, 操作复杂, 给用户带来很大不便, 降低了用户体验度。 针对相关技术中对于位置敏感的 Widget应用,往往需要用户手动去设置当前位置 后再获取信息, 操作复杂, 给用户带来很大不便, 降低了用户体验度的问题, 目前尚 未提出有效的解决方案。 发明内容 本发明旨在提供一种 Widget信息处理方法、 装置、 服务器及系统, 以解决相关技 术中对于位置敏感的 Widget应用, 往往需要用户手动去设置当前位置后再获取信息, 操作复杂, 给用户带来很大不便, 降低了用户体验度的问题。 根据本发明的一个方面, 提供了一种 Widget信息处理方法, 包括: 当 Widget客 户端获取或运行 Widget应用时, 所述 Widget客户端获取当前位置信息; 所述 Widget 客户端向所述 Widget应用对应的服务器发送请求消息,所述请求消息中携带有所述当 前位置信息; 所述 Widget客户端接收所述服务器发送的 Widget信息, 所述 Widget信 息由所述服务器根据所述 Widget应用的特性及所述当前位置信息确定。 较优的, 所述 Widget客户端获取当前位置信息, 包括: 所述 Widget客户端判断 表示位置信息的位置 Location元素是否存在; 当所述 Location元素不存在时, 所述 Widget客户端在自身中添加所述 Location元素; 当所述 Location元素存在时, 所述 Widget客户端获取所述当前位置信息,并将所述当前位置信息写入所述 Location元素。 较优的, 所述 Widget客户端判断表示位置信息的位置 Location元素是否存在, 包 括下列至少之一: 所述 Widget客户端判断所述 Location元素是否缺失; 所述 Widget 客户端判断所述 Location元素是否初始化;所述 Widget客户端判断所述 Location元素 是否和所述当前位置信息匹配。 较优的, 所述 Widget客户端向所述 Widget应用对应的服务器发送请求消息, 包 括: 当所述当前位置信息改变时, 所述 Widget客户端重新向所述 Widget应用对应的 服务器发送请求消息, 并在重新发送的请求消息中携带改变后的当前位置信息。 根据本发明的另一个方面, 提供了另外一种 Widget信息处理方法, 包括: Widget 应用对应的服务器接收 Widget 客户端发送的请求消息, 所述请求消息中携带有所述 Widget客户端的当前位置信息;所述服务器根据所述 Widget应用的特性及所述当前位 置信息确定所述 Widget信息, 并将所述 Widget信息发送至所述 Widget客户端。 根据本发明的另一个方面,提供了另外一种 Widget信息处理方法,包括:当 Widget 客户端获取或运行 Widget应用时,所述 Widget客户端获取当前位置信息;所述 Widget 客户端向所述 Widget应用对应的服务器发送请求消息,所述请求消息中携带有所述当 前位置信息; 所述服务器接收所述 Widget客户端发送的请求消息, 根据所述 Widget 应用的特性及所述当前位置信息确定所述 Widget信息, 并将所述 Widget信息发送至 所述 Widget客户端; 所述 Widget客户端接收所述 Widget信息。 根据本发明的另一个方面, 提供了一种 Widget信息处理装置, 集成于 Widget客 户端中, 包括: 获取模块, 设置为当所述 Widget客户端获取或运行 Widget应用时, 获取当前位置信息;发送模块,设置为向所述 Widget应用对应的服务器发送请求消息, 所述请求消息中携带有所述当前位置信息; 第一接收模块, 设置为接收所述服务器发 送的 Widget信息, 所述 Widget信息由所述服务器根据所述 Widget应用的特性及所述 当前位置信息确定。 较优的, 所述获取模块包括: 判断子模块, 设置为判断表示位置信息的位置
(Location) 元素是否存在; 添加子模块, 设置为当所述 Location元素不存在时, 在 自身中添加所述 Location元素; 写入子模块, 设置为当所述 Location元素存在时, 获 取所述当前位置信息, 并将所述当前位置信息写入所述 Location元素。 较优的, 所述发送模块还设置为当所述当前位置信息改变时, 重新向所述 Widget 应用对应的服务器发送请求消息, 并在重新发送的请求消息中携带改变后的当前位置 信息。 根据本发明的另一个方面, 提供了一种服务器, 包括: 第二接收模块, 设置为接 收 Widget客户端发送的请求消息, 所述请求消息中携带有所述 Widget客户端的当前 位置信息; 确定模块, 设置为根据所述 Widget应用的特性及所述当前位置信息确定所 述 Widget信息, 并将所述 Widget信息发送至所述 Widget客户端。 根据本发明的另一个方面, 提供了一种 Widget信息处理系统, 包括获取或运行 Widget应用的 Widget客户端和所述 Widget应用对应的服务器: 所述 Widget客户端, 设置为获取或运行 Widget应用时, 获取当前位置信息; 向所述 Widget应用对应的服 务器发送请求消息, 所述请求消息中携带有所述当前位置信息; 以及接收所述服务器 发送的 Widget信息; 所述服务器, 设置为接收所述请求消息, 根据所述 Widget应用 的特性及所述当前位置信息确定所述 Widget信息, 并将所述 Widget信息发送至所述 Widget客户端。 在本发明实施例中, 当 Widget客户端获取或运行 Widget应用时, Widget客户端 获取当前位置信息; Widget客户端向 Widget应用对应的服务器发送请求消息,请求消 息中携带有 Widget 客户端获得的当前位置信息; Widget 客户端接收服务器发送的 Widget信息, Widget信息由服务器根据 Widget应用的特性及 Widget客户端获得的当 前位置信息确定。 当移动终端的位置环境发生变化时, Widget客户端能够获取当前位 置信息, 并把针对当前位置的 Widget信息推送给用户, 即 Widget应用能够自动根据 位置的变化更新信息, 不需要手动去设置当前位置后再获取信息, 操作简化, 并且会 增加其智能化, 提高 Widget应用的可用性。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的第一种 Widget信息处理方法的处理流程图; 图 2是根据本发明实施例的 Widget客户端获取当前位置信息的处理流程图; 图 3是根据本发明实施例的第二种 Widget信息处理方法的处理流程图; 图 4是根据本发明实施例的第三种 Widget信息处理方法的处理流程图; 图 5是根据本发明实施例的 Widget客户端中各功能模块划分的关系示意图; 图 6是根据本发明实施例的实施三中更新 Location元素内容的处理流程图; 图 7是根据本发明实施例的 Widget信息处理装置的结构示意图; 图 8是根据本发明实施例的获取模块的结构示意图; 图 9是根据本发明实施例的服务器的结构示意图; 图 10是根据本发明实施例的 Widget信息处理系统的结构示意图。 具体实施方式 下面将参考附图并结合实施例, 来详细说明本发明。 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 相关技术中提到, 对于位置敏感的 Widget应用, 往往需要用户手动去设置当前位 置后再获取信息, 操作复杂, 给用户带来很大不便, 降低了用户体验度。 为解决上述 技术问题, 本发明实施例提供了一种窗口式 Widget信息处理方法, 其处理流程如图 1 所示, 包括: 步骤 S102、 当 Widget客户端获取或运行 Widget应用时, Widget客户端获取当前 位置信息; 步骤 S104、 Widget客户端向 Widget应用对应的服务器发送请求消息, 请求消息 中携带有 Widget客户端获得的当前位置信息; 步骤 S106、 Widget客户端接收服务器发送的 Widget信息, Widget信息由服务器 根据 Widget应用的特性及 Widget客户端获得的当前位置信息确定。 在本发明实施例中, 当 Widget客户端获取或运行 Widget应用时, Widget客户端 获取当前位置信息; Widget客户端向 Widget应用对应的服务器发送请求消息,请求消 息中携带有 Widget 客户端获得的当前位置信息; Widget 客户端接收服务器发送的 Widget信息, Widget信息由服务器根据 Widget应用的特性及 Widget客户端获得的当 前位置信息确定。 当移动终端的位置环境发生变化时, Widget客户端能够获取当前位 置信息, 并把针对当前位置的 Widget信息推送给用户, 即 Widget应用能够自动根据 位置的变化更新信息, 不需要手动去设置当前位置后再获取信息, 操作简化, 并且会 增加其智能化, 提高 Widget应用的可用性。 实施时, Widget客户端获取当前位置信息, 较优的, 可以包括如图 2所示流程: 步骤 S202、 Widget客户端判断表示位置信息的位置 Location元素是否存在; 步骤 S204、当 Location元素不存在时, Widget客户端在自身中添加 Location元素; 步骤 S206、 当 Location元素存在时, Widget客户端获取当前位置信息, 并将当前 位置信息写入 Location元素。 当然, Location元素只是一个示例, 用于表示位置信息, 利用其他元素或属性表 示位置信息也可以。 换句话说, 本发明实施例需要在 widget客户端增加一个表示位置 信息的元素或者属性, 比如这个元素或属性可以命名为 "Locations Widget 客户端运 行一个 Widget应用时, 首先 Widget客户端判断 Location元素是否存在, 如果不存在, 则添加此元素或属性, 并通过定位信息获取模块把当前位置信息写入到 Location元素 或属性中。 Widget客户端向服务器发送请求信息的时候,读取 Widget客户端中配置文 件内的 Location信息, 并把 Location信息作为请求信息的一部分发送给服务器。 一旦 终端位置发生变化, Widget客户端通过定位信息获取模块获得终端的最新位置信息, 然后则把最新的位置信息写入到 Widget客户端的配置文件 Location元素或属性中,并 向服务器发送包含 Location信息的请求。 实施时, Widget客户端判断表示位置信息的位置 Location元素是否存在, 包括下 列至少之一:
Widget客户端判断 Location元素是否缺失;
Widget客户端判断 Location元素是否初始化;
Widget客户端判断 Location元素是否和当前位置信息匹配。 实施时,较优的, Widget客户端向 Widget应用对应的服务器发送请求消息,包括: 在当前位置信息改变时, Widget客户端重新向 Widget应用对应的服务器发送请求 消息, 并在重新发送的请求消息中携带改变后的当前位置信息。 由于请求消息中携带的当前位置信息改变了, 服务器根据 Widget应用的特性及 Widget 客户端获得的当前位置信息确定的 Widget 信息也会相应做改变, 从而使得 Widget应用能够自动根据位置的变化更新信息, 不需要手动去设置当前位置后再获取 信息, 操作简化, 并且会增加其智能化, 提高 Widget应用的可用性。 基于同一发明构思, 本发明实施例还提供了另外一种 Widget信息处理方法, 其处 理流程如图 3所示, 包括: 步骤 S302、 Widget应用对应的服务器接收 Widget客户端发送的请求消息, 请求 消息中携带有 Widget客户端的当前位置信息; 步骤 S304、 服务器根据 Widget应用的特性及当前位置信息确定 Widget信息, 并 将 Widget信息发送至 Widget客户端。 基于同一发明构思, 本发明实施例还提供了另外一种 Widget信息处理方法, 其处 理流程如图 4所示: 步骤 S402、 当 Widget客户端获取或运行 Widget应用时, Widget客户端获取当前 位置信息; 步骤 S404、 Widget客户端向 Widget应用对应的服务器发送请求消息, 请求消息 中携带有当前位置信息; 步骤 S406、 服务器接收 Widget客户端发送的请求消息, 根据 Widget应用的特性 及当前位置信息确定 Widget信息, 并将 Widget信息发送至 Widget客户端; 步骤 S408、 Widget客户端接收 Widget信息。 实施例一 当 Widget客户端获得或者运行一个或者多个 Widget应用时, 由 Widget客户端通 过系统或定位模块获取当前的位置信息,或者系统或定位模块通知 Widget客户端用户 的位置信息, Widget客户端将其保存到 Widget客户端配置文件内表示位置信息的元素 或属性中。 Widget客户端将在 Widget应用向服务器发送请求信息的时候,把配置文件 内的位置信息作为请求体的一部分一起发送给服务器, 服务器则根据请求体携带的用 户位置信息将与该位置信息对应的内容返回给 widget 客户端, widget 客户端则根据 widget应用的特点进行解析, 并通过 widget应用呈现给用户。 一旦用户位置发生变化 时, Widget客户端就更新配置文件内的位置信息, 并向服务器重新发送请求, 以此达 到 Widget应用的内容同时自动更新的目的。 Widget客户端中的位置信息是所有 Widget 应用共用的, 所以可以达到同时更新多个 Widget应用的效果。 实施例二 为实现本发明实施例提供的 Widget信息处理方法, Widget客户端至少应该包括以 下五个功能模块: 定位信息获取模块; 配置文件内容更新模块; 请求体构造模块; 网 络交互模块; Widget信息解析模块。
Widget客户端中各功能模块划分的关系示意图请参见图 5, 各功能模块的功能如 下: 定位信息获取模块 501-负责通过系统或定位模块来获取当前终端的位置信息以 及侦听终端位置信息的变化, 当获取定位信息后, 会通知配置文件内容更新模块 502; 配置文件内容更新模块 502--负责对 Widget客户端的配置文件内容进行更新, 确 保配置文件 Location信息与当前终端位置信息一致。 更新操作完成后, 通知请求体构 造模块 503 ; 请求体构造模块 503--负责构造一个符合要求的服务器请求, 这个请求要包含 Location信息。 构造完成后, 通知网络交互模块 504; 网络交互模块 504--负责从请求体构造模块 503构造的请求, 发送给服务器, 并负 责接收服务器返回的信息, 然后通知 Widget信息解析模块 505;
Widget信息解析模块 505--负责对服务器返回的信息进行解析,构建成用户需要的 形式, 至此流程基本结束。 实施例三 Widget客户端在运行一个 Widget应用后, 更新 Location元素内容的实现方法的 流程如图 6所示, 包括: 步骤 S602、 无线终端运行 Widget应用, 执行步骤 S604; 步骤 S604、 判断客户端 Location元素或属性是否存在, 如果存在, 则执行步骤 S606, 如果不存在, 则执行步骤 S608; 步骤 S606、在 Widget客户端配置文件中添加 Location元素或属性,执行步骤 S608; 步骤 S608、调用定位模块接口对 Location元素或属性进行初始化,执行步骤 S610; 步骤 S610、 向服务器发送请求, 请求中包含 Location内容, 执行步骤 S612; 步骤 S612、 把服务器返回的信息显示给用户, 执行步骤 S614; 步骤 S614、 流程结束。 此时就完成了基于定位的 Widget应用内容自动更新方法的过程, 流程结束。 基于同一发明构思, 本发明实施例还提供了一种 Widget信息处理装置, 其结构如 图 7所示, 集成于 Widget客户端中, 包括: 获取模块 701,设置为当 Widget客户端获取或运行 Widget应用时,获取当前位置 信息; 发送模块 702, 设置为向 Widget应用对应的服务器发送请求消息, 请求消息中携 带有所述当前位置信息; 第一接收模块 703, 设置为接收服务器发送的 Widget信息, Widget信息由服务器 根据 Widget应用的特性及当前位置信息确定。 在一个实施例中, 如图 8所示, 获取模块 701可以包括: 判断子模块 801, 设置为判断表示位置信息的位置 Location元素是否存在; 添加子模块 802, 设置为当 Location元素不存在时, 在自身中添加 Location元素; 写入子模块 803, 设置为当 Location元素存在时, 获取当前位置信息, 并将当前 位置信息写入 Location元素。 在一个实施例中, 发送模块 702 还可以设置为在当前位置信息改变时, 重新向 Widget应用对应的服务器发送请求消息, 并在重新发送的请求消息中携带改变后的当 前位置信息。 基于同一发明构思, 本发明实施例还提供了一种服务器, 其结构如图 9所示, 包 括: 第二接收模块 901, 设置为接收 Widget客户端发送的请求消息, 请求消息中携带 有 Widget客户端的当前位置信息; 确定模块 902, 设置为根据 Widget应用的特性及当前位置信息确定 Widget信息, 并将 Widget信息发送至 Widget客户端。 基于同一发明构思, 本发明实施例还提供了一种 Widget信息处理系统, 其结构如 图 10所示, 包括获取或运行 Widget应用的 Widget客户端 1001和 Widget应用对应的 服务器 1002: Widget客户端 1001, 设置为获取或运行 Widget应用时, 获取当前位置信息; 向
Widget应用对应的服务器发送请求消息, 请求消息中携带有当前位置信息; 以及接收 服务器发送的 Widget信息; 服务器 1002, 设置为接收请求消息, 根据 Widget应用的特性及当前位置信息确 定 Widget信息, 并将 Widget信息发送至 Widget客户端。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: 在本发明实施例中, 当 Widget客户端获取或运行 Widget应用时, Widget客户端 获取当前位置信息; Widget客户端向 Widget应用对应的服务器发送请求消息,请求消 息中携带有 Widget 客户端获得的当前位置信息; Widget 客户端接收服务器发送的 Widget信息, Widget信息由服务器根据 Widget应用的特性及 Widget客户端获得的当 前位置信息确定。 当移动终端的位置环境发生变化时, Widget客户端能够获取当前位 置信息, 并把针对当前位置的 Widget信息推送给用户, 即 Widget应用能够自动根据 位置的变化更新信息, 不需要手动去设置当前位置后再获取信息, 操作简化, 并且会 增加其智能化, 提高 Widget应用的可用性。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而可以将 它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限 制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种 Widget信息处理方法, 包括:
当 Widget客户端获取或运行 Widget应用时, 所述 Widget客户端获取当前 位置信息;
所述 Widget客户端向所述 Widget应用对应的服务器发送请求消息, 所述 请求消息中携带有所述当前位置信息;
所述 Widget客户端接收所述服务器发送的 Widget信息,所述 Widget信息 由所述服务器根据所述 Widget应用的特性及所述当前位置信息确定。
2. 根据权利要求 1所述的方法, 其中, 所述 Widget客户端获取当前位置信息, 包 括:
所述 Widget客户端判断表示位置信息的位置 Location元素是否存在; 当所述 Location 元素不存在时, 所述 Widget 客户端在自身中添加所述 Location兀素;
当所述 Location元素存在时, 所述 Widget客户端获取所述当前位置信息, 并将所述当前位置信息写入所述 Location元素。
3. 根据权利要求 2所述的方法, 其中, 所述 Widget客户端判断表示位置信息的位 置 Location元素是否存在, 包括下列至少之一:
所述 Widget客户端判断所述 Location元素是否缺失;
所述 Widget客户端判断所述 Location元素是否初始化;
所述 Widget客户端判断所述 Location元素是否和所述当前位置信息匹配。
4. 根据权利要求 1至 3任一项所述的方法,其中,所述 Widget客户端向所述 Widget 应用对应的服务器发送请求消息, 包括:
当所述当前位置信息改变时, 所述 Widget客户端重新向所述 Widget应用 对应的服务器发送请求消息, 并在重新发送的请求消息中携带改变后的当前位 置信息。
5. 一种 Widget信息处理方法, 包括: Widget应用对应的服务器接收 Widget客户端发送的请求消息, 所述请求 消息中携带有所述 Widget客户端的当前位置信息;
所述服务器根据所述 Widget 应用的特性及所述当前位置信息确定所述 Widget信息, 并将所述 Widget信息发送至所述 Widget客户端。
6. 一种 Widget信息处理方法, 包括:
当 Widget客户端获取或运行 Widget应用时, 所述 Widget客户端获取当前 位置信息;
所述 Widget客户端向所述 Widget应用对应的服务器发送请求消息, 所述 请求消息中携带有所述当前位置信息;
所述服务器接收所述 Widget客户端发送的请求消息, 根据所述 Widget应 用的特性及所述当前位置信息确定所述 Widget信息, 并将所述 Widget信息发 送至所述 Widget客户端;
所述 Widget客户端接收所述 Widget信息。
7. —种 Widget信息处理装置, 集成于 Widget客户端中, 包括:
获取模块, 设置为当所述 Widget客户端获取或运行 Widget应用时, 获取 当前位置信息;
发送模块, 设置为向所述 Widget应用对应的服务器发送请求消息,所述请 求消息中携带有所述当前位置信息;
第一接收模块, 设置为接收所述服务器发送的 Widget信息, 所述 Widget 信息由所述服务器根据所述 Widget应用的特性及所述当前位置信息确定。
8. 根据权利要求 7所述的装置, 其中, 所述获取模块包括:
判断子模块, 设置为判断表示位置信息的位置 Location元素是否存在; 添加子模块, 设置为当所述 Location 元素不存在时, 在自身中添加所述 Location兀素;
写入子模块,设置为当所述 Location元素存在时,获取所述当前位置信息, 并将所述当前位置信息写入所述 Location元素。
9. 根据权利要求 7或 8所述的装置, 其中, 所述发送模块还设置为当所述当前位 置信息改变时, 重新向所述 Widget应用对应的服务器发送请求消息, 并在重新 发送的请求消息中携带改变后的当前位置信息。
10. 一种服务器, 包括:
第二接收模块, 设置为接收 Widget客户端发送的请求消息,所述请求消息 中携带有所述 Widget客户端的当前位置信息;
确定模块,设置为根据所述 Widget应用的特性及所述当前位置信息确定所 述 Widget信息, 并将所述 Widget信息发送至所述 Widget客户端。
11. 一种 Widget信息处理系统, 包括获取或运行 Widget应用的 Widget客户端和所 述 Widget应用对应的服务器:
所述 Widget客户端, 设置为获取或运行 Widget应用时, 获取当前位置信 息; 向所述 Widget应用对应的服务器发送请求消息,所述请求消息中携带有所 述当前位置信息; 以及接收所述服务器发送的 Widget信息;
所述服务器, 设置为接收所述请求消息,根据所述 Widget应用的特性及所 述当前位置信息确定所述 Widget信息,并将所述 Widget信息发送至所述 Widget 客户端。
PCT/CN2011/080134 2011-02-11 2011-09-23 Widget信息处理方法、装置、服务器及系统 WO2012106955A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011100362780A CN102137099A (zh) 2011-02-11 2011-02-11 Widget信息处理方法、装置、服务器及系统
CN201110036278.0 2011-02-11

Publications (1)

Publication Number Publication Date
WO2012106955A1 true WO2012106955A1 (zh) 2012-08-16

Family

ID=44296754

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080134 WO2012106955A1 (zh) 2011-02-11 2011-09-23 Widget信息处理方法、装置、服务器及系统

Country Status (2)

Country Link
CN (1) CN102137099A (zh)
WO (1) WO2012106955A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137099A (zh) * 2011-02-11 2011-07-27 中兴通讯股份有限公司 Widget信息处理方法、装置、服务器及系统
CN103634334A (zh) * 2012-08-20 2014-03-12 上海念汉数码科技有限公司 云服务通讯录系统及其实现方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478720A (zh) * 2009-01-23 2009-07-08 曹梅花 一种位置感知信息获取系统
US20100197219A1 (en) * 2009-02-02 2010-08-05 Kota Enterprises, Llc System and method for automated location-based widgets
CN101848416A (zh) * 2010-04-02 2010-09-29 宇龙计算机通信科技(深圳)有限公司 一种移动终端、应用服务器及应用推送方法和系统
CN101937339A (zh) * 2009-06-30 2011-01-05 华为技术有限公司 Widget管理方法及客户端
CN102137099A (zh) * 2011-02-11 2011-07-27 中兴通讯股份有限公司 Widget信息处理方法、装置、服务器及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004021218A2 (en) * 2002-08-29 2004-03-11 Matsushita Electric Industrial Co., Ltd. Content processing apparatus and content display apparatus based on location information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478720A (zh) * 2009-01-23 2009-07-08 曹梅花 一种位置感知信息获取系统
US20100197219A1 (en) * 2009-02-02 2010-08-05 Kota Enterprises, Llc System and method for automated location-based widgets
CN101937339A (zh) * 2009-06-30 2011-01-05 华为技术有限公司 Widget管理方法及客户端
CN101848416A (zh) * 2010-04-02 2010-09-29 宇龙计算机通信科技(深圳)有限公司 一种移动终端、应用服务器及应用推送方法和系统
CN102137099A (zh) * 2011-02-11 2011-07-27 中兴通讯股份有限公司 Widget信息处理方法、装置、服务器及系统

Also Published As

Publication number Publication date
CN102137099A (zh) 2011-07-27

Similar Documents

Publication Publication Date Title
US10693969B2 (en) Electronic device using logical channels for communication
EP3043530B1 (en) Method and apparatus for implementing subscription notification
WO2019024604A1 (zh) 一种应用与网络切片的关联方法、装置和通信系统
US8301180B1 (en) System and methods for robust messaging
CN103069755B (zh) 使用多个客户端实例的即时消息传送的方法和系统
US20050232175A1 (en) System and method for provisioning device management tree parameters over a client provisioning protocol
CN109429214B (zh) 业务会话建立方法、设备及系统
JP2018506753A (ja) メッセージ撤回方法および装置
JP2014532358A (ja) 位置に基づくグループ生成方法、装置及びシステム
CN112134784A (zh) 消息展示方法、装置、终端、服务器、系统及存储介质
US8880680B2 (en) System for distributed personal device management
CN110650029B (zh) 一种配置方法及装置
WO2017092594A1 (zh) 一种信息处理方法及装置
CN104936282A (zh) 一种融合通信业务的注册方法及装置
KR20150084284A (ko) 전자 장치의 상태 메시지 서비스 제공 방법 및 그 전자 장치
WO2012019391A1 (zh) 号码详情的获取系统及方法
CN111787088A (zh) 小程序数据处理的方法和装置
CN110489244A (zh) 信息处理方法、系统、装置和计算机可读存储介质
AU2014353075B2 (en) Method and system for universal chat gateways
US20160100021A1 (en) Information processing device, destination information updating method, and record medium
WO2012106955A1 (zh) Widget信息处理方法、装置、服务器及系统
CN104735643A (zh) 一种信息处理的方法及数据服务器
CN108966229A (zh) 一种登陆无线路由器的方法及终端
US20210185638A1 (en) Preventing notification loss during temporary network disconnection
CN104869561A (zh) 一种通信录更新的方法、客户端及通信录管理平台

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

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

Country of ref document: EP

Kind code of ref document: A1