[go: up one dir, main page]

WO2016124013A1 - 一种用于动态实现应用功能的方法和装置 - Google Patents

一种用于动态实现应用功能的方法和装置 Download PDF

Info

Publication number
WO2016124013A1
WO2016124013A1 PCT/CN2015/092959 CN2015092959W WO2016124013A1 WO 2016124013 A1 WO2016124013 A1 WO 2016124013A1 CN 2015092959 W CN2015092959 W CN 2015092959W WO 2016124013 A1 WO2016124013 A1 WO 2016124013A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration file
layout information
function configuration
function
layout
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2015/092959
Other languages
English (en)
French (fr)
Inventor
吕文玉
李军
王道龙
刘孟
刘晓伟
燕宇飞
靳茵茵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing Co Ltd
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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to US15/301,363 priority Critical patent/US10127057B2/en
Publication of WO2016124013A1 publication Critical patent/WO2016124013A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0272Virtual private networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/03Indexing scheme relating to G06F21/50, monitoring users, programs or devices to maintain the integrity of platforms
    • G06F2221/033Test or assess software
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the present invention relates to the field of computer equipment, and in particular, to a method and apparatus for dynamically implementing an application function based on a mobile terminal.
  • the existing terminal device manufacturers have more and more screen size specifications of the terminal device, and the screen resolution of the terminal device also changes with the generation of the large-screen terminal device. Due to the large difference in resolution, the fast and convenient personalized adaptation is the development trend of the terminal equipment in the future, so that the application can be displayed with the best effect at different resolutions.
  • the adaptation of the application requires developers to redesign and develop to achieve personalized adaptation of the new resolution. After development, the specific resolution can only be solved by releasing a new version of the application. The adaptation problem finally requires the user to reinstall the adapted new version of the application to better display the application effects and functions, which results in a longer period from the start of adaptation to the normal application release.
  • One of the technical problems to be solved by the present invention is that the prior art needs to reinstall a new version of the application when performing personalized adaptation and new function on-line and problem correction for different resolutions.
  • a method for dynamically implementing an application function includes:
  • an apparatus for dynamically implementing an application function includes:
  • the present embodiment can create a display form and a program control in the terminal device through the layout information function configuration file, thereby establishing a link between the program control and the application function, so as to realize rapid development, adaptation, and release of the application, and not through publishing.
  • the new version of the app enables personalized adaptation of specific resolutions and new feature launches and bug fixes.
  • FIG. 1 is a flow chart showing a method for dynamically implementing an application function according to an embodiment of the present invention
  • FIG. 2 is a flow chart showing a method for dynamically implementing an application function according to another embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a method for dynamically implementing an application function according to another embodiment of the present invention.
  • FIG. 4 is a structural block diagram of an apparatus for dynamically implementing an application function according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of an apparatus for dynamically implementing an application function according to another embodiment of the present invention.
  • FIG. 6 is a structural block diagram of an apparatus for dynamically implementing an application function according to another embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a synchronization process of a layout file and a function configuration file according to an embodiment of the present invention
  • FIG. 8 is a schematic flow chart of window loading according to an embodiment of the present invention.
  • FIG. 9 is a flow chart showing an application function of a form according to a layout file according to an embodiment of the present invention.
  • Computer device also referred to as “computer” in the context, is meant an intelligent electronic device that can perform predetermined processing, such as numerical calculations and/or logical calculations, by running a predetermined program or instruction, which can include a processor and Memory, executed by the processor in the memory
  • predetermined processing such as numerical calculations and/or logical calculations
  • the pre-stored surviving instructions are used to execute a predetermined process, or are executed by hardware such as an ASIC, an FPGA, a DSP, or the like, or a combination of the two.
  • Computer devices include, but are not limited to, servers, personal computers, notebook computers, tablets, smart phones, and the like.
  • the computer device includes a user device and a network device.
  • the user equipment includes, but is not limited to, a computer, a smart phone, a PDA, etc.
  • the network device includes but is not limited to a single network server, a server group composed of multiple network servers, or a cloud computing based computer Or a cloud composed of a network server, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
  • the computer device can be operated separately to implement the present invention, and can also access the network and implement the present invention by interacting with other computer devices in the network.
  • the network in which the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
  • the user equipment, the network equipment, the network, and the like are merely examples, and other existing or future possible computer equipment or networks, such as those applicable to the present invention, are also included in the scope of the present invention. It is included here by reference.
  • first means “first,” “second,” etc.
  • these elements should not be limited by these terms. These terms are used only to distinguish one unit from another. For example, a first unit could be termed a second unit without departing from the scope of the exemplary embodiments, and And similarly the second unit may be referred to as a first unit.
  • the term "and/or" used herein includes any and all combinations of one or more of the associated listed items.
  • FIG. 1 is a flow diagram of a method for dynamically implementing an application function, in accordance with one embodiment of the present invention.
  • the method in this embodiment is mainly implemented by a user equipment, including but not limited to a desktop computer, a notebook computer, a tablet computer, a smart phone, and the like.
  • the user equipment is only an example, and other existing or future network equipment and user equipment may be applicable to the present invention, and are also included in the scope of the present invention and are included in the reference. this.
  • the method according to the present embodiment includes step S100, step S110, and step S120.
  • step S100 the user equipment sends the status information to the network device.
  • the user equipment may first send the generated authentication information to the network device, where the network device performs authentication processing, and the network device authenticates the user equipment according to the authentication information. After passing, the authentication result is returned to the user equipment.
  • the step of authenticating may be omitted, and the status information is directly sent to the network device.
  • the status information may include the model, the resolution, the system version number, and the identifier information of the application installed in the user equipment, where the identifier information can uniquely identify the application, including but not limited to the application package name, unified A resource identifier, a picture information that uniquely identifies the application, and the like.
  • step S110 the user equipment acquires a layout information function configuration file fed back by the network device.
  • the network device After receiving the status information sent by the user equipment, the network device returns the service address of the layout information function configuration file corresponding to the status information to the user equipment.
  • the user equipment links the service address to download the layout information function configuration file, and the layout information function configuration file may include a layout file and a function configuration file.
  • the service address is used to instruct the user equipment to download the layout information function configuration file.
  • the service address may include download address information corresponding to multiple versions of the application under different types of systems, such as multiple versions of different types of operating systems, such as a computer version, an Android version, and an IOS version. Corresponding download address information.
  • the user equipment may check whether the version number of the locally stored layout and the configuration information is synchronized with the layout information function configuration file before downloading the layout information function configuration file. If it is not synchronized, the layout information function configuration file is downloaded; if it is synchronized, it means that the user equipment does not need to update the local specific application.
  • the user equipment may also decrypt and/or verify the layout information function configuration file after downloading the layout information function configuration file.
  • the file transmitted between the user equipment and the network device may be encrypted by using a pre-agreed ciphertext, an encryption certificate, or the like.
  • the user equipment may decrypt the layout information function configuration file based on a pre-agreed ciphertext or an encryption certificate to obtain a corresponding layout file and a function configuration file. Whether or not decrypted, the user equipment may also download the layout information function profile after the layout information function profile The layout file and the function configuration file are verified to determine the integrity and security of the layout information function profile.
  • step S120 the user equipment creates a form and a program control according to the layout information function configuration file, and establishes a link between the program control and the application function.
  • the user equipment creates a form according to the layout file in the layout information function configuration file, and creates each control according to the function configuration file in the layout information function configuration file, and initializes the status and content of each control, and according to the function configuration file,
  • the controls of the form establish links to application functions.
  • the mobile terminal device supported by the mobile client of Baidu Cloud Manager has a maximum resolution of 1280 ⁇ 720.
  • mobile terminal devices with 2K resolution ie 2560 ⁇ 1440
  • Baidu Cloud Manager 's mobile client to support 2K resolution mobile terminal devices.
  • the user equipment first sends status information including the resolution to the network device.
  • the layout file, the function configuration file, and the like corresponding to each resolution are stored on the network device and managed in a separate file directory, and the related files of each resolution are separately saved, and the 2K resolution layout file and function configuration file corresponding to the new version are respectively saved.
  • the saved directory can be named 2K.
  • the user equipment creates a form and program control for the 2K resolution display according to the 2K resolution layout file and the function configuration file, and establishes a link between the program control and the application function, thereby enabling the user to open Baidu in the user device.
  • the cloud manager's mobile client is updated, the updated Baidu cloud housekeeper will display the user device in 2K resolution.
  • FIG. 2 is a flow diagram of a method for dynamically implementing an application function in accordance with another embodiment of the present invention.
  • the method of this embodiment is mainly implemented by a user equipment, and any description of the user equipment in the embodiment shown in FIG. 1 is included herein by reference.
  • the method according to the present embodiment includes step S100, step S110, step S120, step S130, and step S140.
  • the steps S100, S110, and S120 have been described in detail with reference to FIG. 1, and details are not described herein again.
  • step S130 the user equipment displays the form on the current display interface.
  • the created form can be displayed on the current display interface, and the form data is initialized.
  • the step of displaying the window on the current display interface is as shown in FIG. 8 , and may include:
  • the form created by the user equipment is a login form as an example.
  • the user device downloads the layout information function configuration file
  • the function configuration file corresponding to the serial number of the login form is used to display the various controls and operation behaviors of the login form on the current display interface through the function configuration file.
  • two tags can be created according to the function profile, the titles of which are “account” and “password” respectively; then two input boxes are created, one input box is displayed “Account input”, another input box displays “password input”; finally create a "login” button, and according to the coordinate position in the layout file, Set the placement of each control.
  • the step of displaying the window on the current display interface may further include:
  • the user equipment locally creates a form corresponding to the window serial number, and creates a control corresponding to the window serial number according to the layout information function configuration file and initializes parameter settings of each control.
  • Baidu Cloud Manager adds "BT download button” to the mobile client.
  • the BT download function has been added to the offline download function in the Baidu cloud server.
  • the user equipment creates a “BT download button” corresponding to each control according to the layout information function configuration file downloaded by the BT, and initializes parameter settings of each control, thereby implementing the Baidu cloud.
  • the mobile client adds the "BT Download Button" operation.
  • step S140 the user equipment invokes a function interface of the program control according to the operation command to implement the operation of the application function.
  • the user sends the login request signaling by clicking the “login” button, and when the user device creates the “login” button in the login form, the “login” button may be corresponding.
  • the click event is associated with the send request operation and by obtaining the login request related service path address from the function profile.
  • the send request operation is activated, and the login service path address is set, and the currently input user account and password are acquired, the login command is initiated, and the form jump processing or information is performed according to the returned login result. prompt.
  • Baidu Cloud Manager Take the operation of the user logging in to Baidu Cloud Manager as an example, when the user is in the "account” and "password” After inputting the Baidu account and password respectively in the input box, click the “Login” button, and the user equipment displays the data stored in the Baidu cloud in the form of the Baidu cloud housekeeper according to the service path address of the Baidu cloud corresponding to the Baidu account and password. Thereby implementing the operation function of the Baidu cloud application function.
  • FIG. 3 is a schematic flow chart of a method for dynamically implementing an application function according to another embodiment of the present invention.
  • the method of this embodiment is mainly implemented by a user equipment, and any description of the user equipment in the embodiment shown in FIG. 1 is included herein by reference.
  • the method according to the present embodiment includes step S100, step S110, and step S120.
  • the step S110 further includes step S111
  • the step S120 further includes step S121.
  • the step S100 has been described in detail with reference to FIG. 1 and will not be further described herein.
  • step S111 if the layout information function configuration file further includes a Lua script file, the user equipment downloads the Lua script file from the network device, and checks the Lua script file.
  • the Lua script file is a scripting language embedded in the application to provide flexible extension and customization functions for the application.
  • the Lua script file can be used to extend the new functions of the application.
  • the network device After receiving the status information sent by the user equipment, the network device returns the service address of the layout information function configuration file corresponding to the status information to the user equipment.
  • the user equipment links the service address to download the layout information function configuration file, and the layout information function configuration file includes a layout file, a function configuration file, and a Lua script file.
  • the user equipment can check before downloading the layout information function configuration file. Check whether the version number of the local storage layout and configuration information is synchronized with the layout information function configuration file. If it is not synchronized, the layout information function configuration file is downloaded; if it is synchronized, it means that the user equipment does not need to update the local specific application.
  • the user equipment may also decrypt and/or verify the layout information function configuration file after downloading the layout information function configuration file.
  • the file transmitted between the user equipment and the network device may be encrypted by using a pre-agreed ciphertext, an encryption certificate, or the like.
  • the user equipment may decrypt the layout information function configuration file based on a pre-agreed ciphertext or an encryption certificate to obtain a corresponding layout file, a function configuration file, and a Lua script file.
  • the user equipment may also verify the layout file, the function configuration file, and the Lua script file in the layout information function configuration file after downloading the layout information function configuration file to determine the layout information function configuration. Document integrity and security.
  • step S121 the user equipment creates a form and a program control according to the layout file, the function configuration file, and the Lua script file in the layout information function configuration file, and establishes a link between the program control and the application function.
  • the user equipment creates a form according to the layout file in the layout information function configuration file, creates each control according to the function configuration file, and initializes each control state. If the Lua file exists in the layout information function configuration file, the form loading data request information is parsed, and if there is data request information, the form data loading interface initiates a data request, and the result is fed back according to the data request and the form display data is initialized. . Finally, the user device presents the form.
  • Baidu Cloud Manager's client adds automatic cloud backup function. Because the current version of Baidu Cloud Manager has no automatic cloud backup function, the new version of Baidu Cloud Manager has added automatic cloud backup function.
  • the automatic cloud backup function is extended by the Lua script file. Now, the Lua script file is managed and maintained by the network device. After the user equipment of the old version of the Baidu cloud housekeeper client obtains the layout information function profile including the layout file, the function configuration file, and the Lua script file from the network device, first create a name of the automatic cloud backup through the layout file.
  • Baidu Cloud Manager adopts the above method for dynamics.
  • the manner in which the application functions are implemented and the new online functions are updated should be included in the scope of the present invention.
  • a display form and a program control can be created in the terminal device through the layout information function configuration file, thereby establishing a link between the program control and the application function, so as to realize the application fast.
  • the device for dynamically implementing an application function includes a device for transmitting status information to a network device (hereinafter simply referred to as “information transmitting device 400”), and is configured to obtain feedback of the network device.
  • a device for laying out an information function profile hereinafter referred to as "feedback receiving device 410”
  • feedback receiving device 410 a device for laying out an information function profile
  • window for creating a form and a program control according to the layout information function configuration file and establishing a link between the program control and the application function
  • the device hereinafter referred to as "form and control creating device 420").
  • the information transmitting device 400 transmits the status information to the network device.
  • the information sending apparatus 400 may first send the generated authentication information to the network device, where the network device performs authentication processing, and the network device uses the authentication information to the user equipment according to the authentication information. After the authentication is passed, the authentication result is returned to the user equipment.
  • the step of authenticating may be omitted, and the information transmitting device 400 directly transmits the status information to the network device.
  • the status information may include the model, the resolution, the system version number, and the identifier information of the application installed in the user equipment, where the identifier information can uniquely identify the application, including but not limited to the application package name, unified A resource identifier, a picture information that uniquely identifies the application, and the like.
  • the feedback receiving device 410 acquires a layout information function configuration file fed back by the network device.
  • the network device After receiving the status information sent by the user equipment, the network device returns the service address of the layout information function configuration file corresponding to the status information to the user equipment.
  • the feedback receiving device 410 downloads the layout information function configuration file by linking the service address, and the layout information function configuration file includes a layout file and a function configuration file.
  • the service address is used to instruct the feedback receiving device 410 to download the layout information function configuration file.
  • the service address may include download address information corresponding to multiple versions of the application under different types of systems, such as multiple versions of different types of operating systems, such as a computer version, an Android version, and an IOS version. Corresponding download address information.
  • the device for obtaining the layout information function profile fed back by the network device may include:
  • first detecting sub-device for detecting whether the layout number of the user equipment local storage and the version number of the configuration information is synchronized with the layout information function configuration file
  • synchronization sub-device for downloading the layout information function profile if it is not synchronized.
  • the user equipment may check, by the first detecting sub-device, whether the locally stored layout and the version number of the configuration information are synchronized with the layout information function configuration file before downloading the layout information function configuration file. If not synchronized, the layout information is downloaded through the sync sub-device A feature profile; if synchronized, the user device does not need to be updated for a specific local application.
  • the sub-device for downloading the layout information function configuration file may include:
  • a module for verifying the layout file and the function configuration file in the layout information function configuration file to determine the integrity and security of the layout information function configuration file (hereinafter referred to as "verification module”) .
  • the user equipment may also decrypt and/or verify the layout information function configuration file by the verification module after downloading the layout information function configuration file.
  • the file transmitted between the user equipment and the network device may be encrypted by using a pre-agreed ciphertext, an encryption certificate, or the like.
  • the user equipment may decrypt the layout information function configuration file based on a pre-agreed ciphertext or an encryption certificate to obtain a corresponding layout file and a function configuration file.
  • the user equipment may also verify the layout file and the function configuration file in the layout information function configuration file after downloading the layout information function configuration file to determine the integrity of the layout information function configuration file, whether decrypted or not. And security.
  • the form and control creation device 420 creates a form and a program control according to the layout information function configuration file, and establishes a link between the program control and the application function.
  • the form and control creating device 420 creates a form according to the layout file in the layout information function configuration file, and creates a control according to the function configuration file in the layout information function configuration file and initializes the state and content of each control, and Create links to application functions for each control of the form based on the feature profile.
  • the mobile terminal device supported by the mobile client of Baidu Cloud Manager has a maximum resolution of 1280 ⁇ 720.
  • mobile terminal devices with 2K resolution ie 2560 ⁇ 1440
  • Baidu Cloud Manager's mobile client To support mobile terminal devices with 2K resolution.
  • the information transmitting apparatus 400 first transmits status information including resolution to the network device.
  • the layout file, the function configuration file, and the like corresponding to each resolution are stored on the network device and managed in a separate file directory, and the related files of each resolution are separately saved, and the 2K resolution layout file and function configuration file corresponding to the new version are respectively saved.
  • the saved directory can be named 2K.
  • the form and control creating means 420 creates a form and a program control for the 2K resolution display according to the 2K resolution layout file and the function configuration file, and establishes a link between the program control and the application function, thereby enabling the user to
  • the updated Baidu cloud housekeeper will display the user equipment in 2K resolution.
  • FIG. 5 is a structural block diagram of an apparatus for dynamically implementing an application function (hereinafter simply referred to as an “application implementation apparatus”) according to another embodiment of the present invention. Any description of the user equipment in the embodiment shown in FIG. 4 is incorporated herein by reference.
  • the application implementation device of this embodiment includes an information sending device 400, a feedback receiving device 410, a form and control creating device 420, and a device for displaying the window on the current display interface (hereinafter referred to as "display device 430") And means for interfacing with a function of calling a program control according to an operation command to implement an operation of the application function (hereinafter simply referred to as "function implementation device 440").
  • the information sending device 400, the feedback receiving device 410, and the form and control creating device 420 have been described in detail with reference to FIG. 4, and details are not described herein again.
  • the display device 430 displays the form on the device currently displaying the interface.
  • the created form can be displayed on the current display interface, and the form data is initialized.
  • the display device 430 may specifically include:
  • acquisition sub-device for obtaining a form serial number and a corresponding layout file from the layout information function configuration file
  • file reading sub-devices sub-devices
  • operation display sub-device for displaying the various controls and operational behaviors of the form on the current display interface through the function configuration file.
  • the form created by the user equipment is a login form as an example.
  • the layout file of the created login form is obtained by acquiring the sub-device in a file directory corresponding to the screen resolution of the user device, and the file is passed through the file.
  • the reading sub-device obtains the function configuration file corresponding to the serial number of the login form from the layout file, and finally, the operation display sub-device displays the controls and operation behaviors of the login form on the current display interface through the function configuration file.
  • two tags can be created according to the function profile, the titles of which are "account” and "password” respectively; then two input boxes are created, one input box is displayed “Account input”, another input box displays “password input”; finally create a "login” button, and set the display position of each control according to the coordinate position in the layout file.
  • the device for displaying the window on the current display interface may further include:
  • form creation sub-device if the user device local number does not exist locally, the child device of the form corresponding to the window serial number is created (hereinafter referred to as "form creation sub-device");
  • initialization sub-device for creating each control corresponding to the window serial number and initializing parameter settings of each control according to the layout information function configuration file.
  • the form creation sub-device locally creates the form corresponding to the window serial number
  • the initialization sub-device creates the corresponding control corresponding to the window serial number according to the layout information function configuration file and initializes the parameter settings of each control.
  • Baidu Cloud Manager adds "BT download button" to the mobile client.
  • the BT download function has been added to the offline download function in the Baidu cloud server.
  • the initialization sub-device creates each control corresponding to the “BT download button” according to the layout information function configuration file downloaded by the BT, and initializes the parameter settings of each control.
  • the form creation sub-device creates the form corresponding to the “BT download button”
  • the initialization sub-device creates each control corresponding to the “BT download button” according to the layout information function configuration file downloaded by the BT, and initializes the parameter settings of each control.
  • the function implementing means 440 calls the function interface of the program control in accordance with the operation command to implement the operation of the application function.
  • the user sends the login request signaling by clicking the “login” button, and when the form creation sub-device creates the “login” button in the login form, the “login” can be
  • the click event corresponding to the button is associated with the sending request operation and information such as obtaining the login request related service path address from the function configuration file.
  • the function implementing means 440 activates the sending request operation, sets the login service path address, acquires the currently input user account and password, completes the login command initiation, and performs a form jump according to the returned login result. Transfer processing or information prompts.
  • Baidu Cloud when the user logs in to the Baidu cloud housekeeper as an example, when the user inputs the Baidu account and the password in the input boxes of the “account” and the “password” respectively, the user clicks the “login” button, and the function implementing device 440 corresponds to the Baidu account and the password.
  • the service path address of Baidu Cloud displays the data stored in Baidu Cloud in the form of Baidu Cloud Manager, thus realizing the operation of the application function of Baidu Cloud.
  • FIG. 6 is a diagram of a device for dynamically implementing an application function according to another embodiment of the present invention.
  • Block diagram Any description of the user equipment in the embodiment shown in FIG. 4 is incorporated herein by reference.
  • the application implementation device of this embodiment includes an information transmitting device 400, a feedback receiving device 410, and a form and control creating device 420.
  • the feedback receiving apparatus 410 further includes a module for downloading the Lua script file from the network device, and verifying the Lua script file (hereinafter referred to as “file download module 411”), the form and
  • the widget creation device 420 further includes a module (hereinafter simply referred to as "function implementation module 421”) for invoking the Lua script file according to an operation command of the user to implement the operation of the application function.
  • the step S100 has been described in detail with reference to FIG. 1 and will not be further described herein.
  • the information sending device 400, the feedback receiving device 410, and the form and control creating device 420 have been described in detail with reference to FIG. 4, and details are not described herein again.
  • the file download module 411 downloads the Lua script file from the network device and verifies the Lua script file.
  • the Lua script file is a scripting language embedded in the application to provide flexible extension and customization functions for the application.
  • the Lua script file can be used to extend the new functions of the application.
  • the network device After receiving the status information sent by the user equipment, the network device returns the service address of the layout information function configuration file corresponding to the status information to the user equipment.
  • the file download module 411 links the service address to download the layout information function configuration file, and the layout information function configuration file includes a layout file, a function configuration file, and a Lua script file.
  • the user equipment may further verify the Lua script file by using the file download module 411 after downloading the layout information function configuration file to determine the integrity and security of the layout information function configuration file.
  • the function implementation module 421 creates a form and a program control according to the layout file, the function configuration file, and the Lua script file in the layout information function configuration file, and establishes a link between the program control and the application function.
  • the function implementation module 421 creates a form according to the layout file in the layout information function configuration file, creates each control according to the function configuration file, and initializes the state of each control. If the Lua file exists in the layout information function configuration file, the form loading data request information is parsed, and if there is data request information, the form data loading interface initiates a data request, and the result is fed back according to the data request and the form display data is initialized. . Finally, the function implementation module 421 presents the form.
  • Baidu Cloud Manager's client adds automatic cloud backup function. Because the current version of Baidu Cloud Manager has no automatic cloud backup function, the new version of Baidu Cloud Manager has added automatic cloud backup function.
  • the automatic cloud backup function is implemented by extension of the Lua script file, and the Lua script file is managed and maintained by the network device. After the user equipment of the old version of the Baidu cloud housekeeper client obtains the layout information function configuration file including the layout file, the function configuration file, and the Lua script file from the network device through the file download module 411, a name of the layout file may be first created.
  • Baidu cloud housekeeper adopts the above embodiment to be newly launched.
  • the manner in which the functions are updated is intended to be included in the scope of the present invention.
  • the device for dynamically implementing the application function provided by the embodiment can be used to pass the cloth.
  • the office information function configuration file creates a display form and a program control in the terminal device, thereby establishing a link between the program control and the application function, so as to realize rapid development, adaptation, and release of the application, and not by releasing a new version of the application. Personalized adaptation of specific resolutions and new feature launches and problem corrections are possible.
  • the present invention can be implemented in software and/or a combination of software and hardware.
  • the various devices of the present invention can be implemented using an application specific integrated circuit (ASIC) or any other similar hardware device.
  • the software program of the present invention may be executed by a processor to implement the steps or functions described above.
  • the software program (including related data structures) of the present invention can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like.
  • some of the steps or functions of the present invention may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.
  • a method for dynamically implementing an application function comprising:
  • the function interface of the program control is invoked according to the operation command to implement the operation of the application function.
  • the function configuration file corresponding to the window serial number in the layout information function configuration file is read;
  • the various controls and operational behaviors of the form are displayed on the current display interface by the function configuration file.
  • window serial number If the window number of the window does not exist locally on the user equipment, create a form corresponding to the window serial number
  • the step of obtaining the layout information function configuration file fed back by the network device includes:
  • the layout information function configuration file is downloaded.
  • the step of downloading the layout information function configuration file includes:
  • the step of downloading the layout information function configuration file from the network device further includes:
  • the Lua script file is downloaded from the network device and the Lua script file is verified.
  • step of creating a form and a program control according to the layout information function configuration file, and establishing a link between the program control and the application function comprises:
  • the Lua script file is invoked in accordance with an operation command to implement the operation of the application function.
  • An apparatus for dynamically implementing an application function comprising:
  • Means for invoking a functional interface of a program control in accordance with an operational command to effect operation of the application function
  • the sub-device of the function configuration file corresponding to the window serial number in the layout information function configuration file is read;
  • a sub-device for displaying the controls and operational behavior of the form on the current display interface by the function configuration file is a sub-device for displaying the controls and operational behavior of the form on the current display interface by the function configuration file.
  • the apparatus for displaying the window on the current display interface further comprising:
  • window serial number If the window number of the window does not exist locally on the user equipment, create a child device of the form corresponding to the window serial number;
  • a sub-device for creating each control corresponding to the window serial number and initializing parameter settings of each control according to the layout information function configuration file is a sub-device for creating each control corresponding to the window serial number and initializing parameter settings of each control according to the layout information function configuration file.
  • a sub-device for detecting whether a version number of a layout and configuration information stored locally by the user equipment is synchronized with the layout information function configuration file
  • the sub-device for downloading the layout information function configuration file comprises:
  • the sub-device for downloading the layout information function configuration file from the network device further includes:
  • a module for downloading the Lua script file from a network device and verifying the Lua script file is
  • a module for invoking the Lua script file to implement an operation of the application function according to a user's operation command is

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

本发明提供了一种用于动态实现应用功能的方法及装置,其中,所述方法包括:将状态信息发送给网络设备;获取网络设备反馈的布局信息功能配置文件;根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接。本发明通过布局信息功能配置文件在终端设备中创建显示窗体及程序控件,从而建立程序控件与应用功能的链接,以实现应用程序的快速开发、适配、发布,并且不通过发布新版本的应用程序即可实现特定分辨率的个性化适配及新功能上线和问题修正。

Description

一种用于动态实现应用功能的方法和装置
相关申请的交叉引用
本申请要求2015年02月03日提交的专利申请号为201510055952.8、名称为“一种用于动态实现应用功能的方法和装置”的中国专利申请的优先权,该中国专利申请的内容以引用方式全部并入本文中。
技术领域
本发明涉及计算机设备领域,尤其涉及一种基于移动终端的用于动态实现应用功能的方法和装置。
背景技术
现有的终端设备厂商为了满足用户对终端设备的个性化需求,推出的终端设备的屏幕尺寸规格越来越多,而终端设备的屏幕分辨率也随着大屏幕终端设备的产生而不断变化。由于分辨率的差异较大,因此快速便捷的个性化适配是未来终端设备的发展趋势,从而使应用在不同分辨率下都能以最佳的效果进行展示。但是,针对不同的分辨率,应用程序的适配需要开发人员重新设计及开发才能实现新分辨率的个性化适配工作,而开发完毕后只能通过发布新版本的应用才能解决特定分辨率的适配问题,最后还需要用户重新安装适配后的新版本应用才能更好地展示应用效果及功能,因而导致从开始适配到正常应用发布需要较长的周期。
另外,针对已经发布的应用程序,如果需要将应用中的新功能上线以及问题修正,必需通过发布新版本的应用才能实现,而用户则需要重新下载新版本的应用并安装,导致了较繁琐的操作,不利于应用程序的推广。
发明内容
本发明解决的技术问题之一是现有技术在针对不同分辨率进行个性化适配及新功能上线和问题修正时,需要重新安装新版本的应用才能实现。
根据本发明一方面的一个实施例,提供了一种用于动态实现应用功能的方法,其中,所述方法包括:
将状态信息发送给网络设备;
获取网络设备反馈的布局信息功能配置文件;
根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接。
根据本发明另一方面的一个实施例,提供了一种用于动态实现应用功能的装置,其中,所述装置包括:
用于将状态信息发送给网络设备的装置;
用于获取网络设备反馈的布局信息功能配置文件的装置;
用于根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接的装置。
由于本实施例可以通过布局信息功能配置文件在终端设备中创建显示窗体及程序控件,从而建立程序控件与应用功能的链接,以实现应用程序的快速开发、适配、发布,并且不通过发布新版本的应用程序即可实现特定分辨率的个性化适配及新功能上线和问题修正。
本领域普通技术人员将了解,虽然下面的详细说明将参考图示实施例、附图进行,但本发明并不仅限于这些实施例。而是,本发明的范围是广泛的,且意在仅通过后附的权利要求限定本发明的范围。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:
图1为根据本发明一个实施例的用于动态实现应用功能的方法的流程示意图;
图2为根据本发明另一个实施例的用于动态实现应用功能的方法的流程示意图;
图3为根据本发明另一个实施例的用于动态实现应用功能的方法的流程示意图;
图4为根据本发明一个实施例的用于动态实现应用功能的装置的结构框图;
图5为根据本发明另一个实施例的动态实现应用功能的装置的结构框图;
图6为根据本发明另一个实施例的动态实现应用功能的装置的结构框图;
图7为根据本发明一个实施例的布局文件及功能配置文件的同步流程示意图;
图8为根据本发明一个实施例的窗体加载的流程示意图;
图9为根据本发明一个实施例的根据布局文件实现窗体的应用功能的流程示意图。
附图中相同或相似的附图标记代表相同或相似的部件。
具体实施方式
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。
在上下文中所称“计算机设备”,也称为“电脑”,是指可以通过运行预定程序或指令来执行数值计算和/或逻辑计算等预定处理过程的智能电子设备,其可以包括处理器与存储器,由处理器执行在存储器 中预存的存续指令来执行预定处理过程,或是由ASIC、FPGA、DSP等硬件执行预定处理过程,或是由上述二者组合来实现。计算机设备包括但不限于服务器、个人电脑、笔记本电脑、平板电脑、智能手机等。
所述计算机设备包括用户设备与网络设备。其中,所述用户设备包括但不限于电脑、智能手机、PDA等;所述网络设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量计算机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。其中,所述计算机设备可单独运行来实现本发明,也可接入网络并通过与网络中的其他计算机设备的交互操作来实现本发明。其中,所述计算机设备所处的网络包括但不限于互联网、广域网、城域网、局域网、VPN网络等。
需要说明的是,所述用户设备、网络设备和网络等仅为举例,其他现有的或今后可能出现的计算机设备或网络如可适用于本发明,也应包含在本发明保护范围以内,并以引用方式包含于此。
后面所讨论的方法(其中一些通过流程图示出)可以通过硬件、软件、固件、中间件、微代码、硬件描述语言或者其任意组合来实施。当用软件、固件、中间件或微代码来实施时,用以实施必要任务的程序代码或代码段可以被存储在机器或计算机可读介质(比如存储介质)中。(一个或多个)处理器可以实施必要的任务。
这里所公开的具体结构和功能细节仅仅是代表性的,并且是用于描述本发明的示例性实施例的目的。但是本发明可以通过许多替换形式来具体实现,并且不应当被解释成仅仅受限于这里所阐述的实施例。
应当理解的是,虽然在这里可能使用了术语“第一”、“第二”等等来描述各个单元,但是这些单元不应当受这些术语限制。使用这些术语仅仅是为了将一个单元与另一个单元进行区分。举例来说,在不背离示例性实施例的范围的情况下,第一单元可以被称为第二单元,并 且类似地第二单元可以被称为第一单元。这里所使用的术语“和/或”包括其中一个或更多所列出的相关联项目的任意和所有组合。
应当理解的是,当一个单元被称为“连接”或“耦合”到另一单元时,其可以直接连接或耦合到所述另一单元,或者可以存在中间单元。与此相对,当一个单元被称为“直接连接”或“直接耦合”到另一单元时,则不存在中间单元。应当按照类似的方式来解释被用于描述单元之间的关系的其他词语(例如“处于...之间”相比于“直接处于...之间”,“与...邻近”相比于“与...直接邻近”等等)。
这里所使用的术语仅仅是为了描述具体实施例而不意图限制示例性实施例。除非上下文明确地另有所指,否则这里所使用的单数形式“一个”、“一项”还意图包括复数。还应当理解的是,这里所使用的术语“包括”和/或“包含”规定所陈述的特征、整数、步骤、操作、单元和/或组件的存在,而不排除存在或添加一个或更多其他特征、整数、步骤、操作、单元、组件和/或其组合。
还应当提到的是,在一些替换实现方式中,所提到的功能/动作可以按照不同于附图中标示的顺序发生。举例来说,取决于所涉及的功能/动作,相继示出的两幅图实际上可以基本上同时执行或者有时可以按照相反的顺序来执行。
下面结合附图对本发明作进一步详细描述。
图1为根据本发明一个实施例的用于动态实现应用功能的方法的流程示意图。
其中,本实施例的方法主要通过用户设备来实现;所述用户设备包括但不限于台式计算机、笔记本电脑、平板电脑、智能手机等。
需要说明的是,所述用户设备仅为举例,其他现有的或今后可能出现的网络设备和用户设备如可适用于本发明,也应包含在本发明保护范围以内,并以引用方式包含于此。
根据本实施例的方法包括步骤S100、步骤S110和步骤S120。
在步骤S100中,用户设备将状态信息发送给网络设备。
可选的,如图7所示,该用户设备可先将生成的鉴权信息发送到该网络设备,由该网络设备进行鉴权处理,该网络设备根据该鉴权信息对该用户设备鉴权通过后,将鉴权结果返回给该用户设备。
若该用户设备已经在该网络设备通过注册验证,则可省略鉴权的步骤,而直接将状态信息发送给该网络设备。其中,该状态信息可以包括该用户设备的型号、分辨率、系统版本号以及该用户设备中安装的应用的标识信息,该标识信息能够唯一地标识该应用其包括但不限于应用包名称、统一资源标识符、可唯一标识该应用的图片信息等。
在步骤S110中,用户设备获取网络设备反馈的布局信息功能配置文件。
该网络设备接收到该用户设备发送的状态信息后,将该状态信息对应的布局信息功能配置文件的服务地址返回给该用户设备。该用户设备链接该服务地址下载该布局信息功能配置文件,该布局信息功能配置文件可包括有布局文件和功能配置文件。
其中,所述服务地址用于指示该用户设备下载该布局信息功能配置文件。可选的,该服务地址可包括该应用在不同类型的系统下的多个版本分别对应的下载地址信息,如适用于电脑版、安卓版、IOS版等不同类型的操作系统的多个版本分别对应的下载地址信息。
可选的,该用户设备可在下载该布局信息功能配置文件之前先检查本地存储的布局及配置信息的版本号与该布局信息功能配置文件是否同步。若不同步,则下载该布局信息功能配置文件;若同步则表示该用户设备无需对本地的特定应用程序进行更新。
可选的,该用户设备还可在下载该布局信息功能配置文件之后对该布局信息功能配置文件进行解密和/或校验。其中,该用户设备与该网络设备之间传输的文件可通过预先约定的密文、加密证书等进行加密。该用户设备可在下载该布局信息功能配置文件之后,基于预先约定的密文或加密证书对该布局信息功能配置文件进行解密,获得相应的布局文件和功能配置文件。无论是否经过解密,该用户设备还可在下载该布局信息功能配置文件之后,对该布局信息功能配置文件中的 布局文件和功能配置文件进行校验,以确定该布局信息功能配置文件的完整性及安全性。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何接收网络设备反馈的布局信息功能配置文件的实现方式,均应包含在本发明的范围内。
在步骤S120中,用户设备根据布局信息功能配置文件创建窗体及程序控件,并建立程序控件与应用功能的链接。
具体的,用户设备根据该布局信息功能配置文件中的布局文件创建窗体,以及根据该布局信息功能配置文件中的功能配置文件创建各控件并初始化各控件状态及内容,并根据功能配置文件为该窗体的各控件建立与应用功能的链接。
例如,原有百度云管家的移动客户端支持的移动终端设备的最大分辨率为1280×720,而目前已经有采用2K分辨率(即2560×1440)的移动终端设备上市,因此需要发布新版本的百度云管家的移动客户端以支持2K分辨率的移动终端设备。
采用本实施例提供的用于动态实现应用功能的方法,用户设备首先将包括分辨率的状态信息发送给网络设备。在网络设备上存储有各分辨率对应的布局文件、功能配置文件等以单独文件目录管理,保证每个分辨率的相关文件独立保存,其中新版本对应的2K分辨率的布局文件和功能配置文件所保存的目录可命名为2K。当网络设备根据状态信息确定对应的用户设备的分辨率为2K时,将2K分辨率的布局文件和功能配置文件的存储地址发送给用户设备,用户设备从该存储地址下载2K分辨率的布局文件和功能配置文件。最后,用户设备根据2K分辨率的布局文件和功能配置文件创建用于2K分辨率显示的窗体及程序控件,并建立该程序控件与应用功能的链接,从而使用户在该用户设备中打开百度云管家的移动客户端时,更新后的百度云管家将以2K的分辨率显示在该用户设备中。
图2为根据本发明另一个实施例的用于动态实现应用功能的方法的流程示意图。本实施例的方法主要由用户设备来实现,其中,参照图1所示实施例中对用户设备所做的任何说明,均以引用的方式包含于此。
根据本实施例的方法包括步骤S100、步骤S110、步骤S120、步骤S130和步骤S140。其中,所述步骤S100、步骤S110和步骤S120已在参照图1中予以详述,在此不再赘述。
在步骤S130中,用户设备将窗体展示在当前显示界面。
具体的,当用户设备创建窗体完毕后,可将创建的窗体展示在当前显示界面,并初始化窗体数据。
可选的,将所述窗体展示在当前显示界面的步骤如图8所示,可以包括:
-从所述布局信息功能配置文件中获取窗体序号及对应的布局文件;
-若终端设备本地存在该窗体序号,则读取该窗体序号在所述布局信息功能配置文件中对应的功能配置文件;
-通过所述功能配置文件将所述窗体的各控件及操作行为展示在当前显示界面。
具体的,本步骤以用户设备创建的窗体是登录窗体为例进行说明。当用户设备下载布局信息功能配置文件之后,当需要展示登录窗体时,可首先在窗体管理器中查找是否已经创建登录窗体。若窗体管理器中存在已创建的登录窗体,则先到与该用户设备的屏幕分辨率相对应的文件目录中获取该已创建的登录窗体的布局文件,并从该布局文件中获取登录窗体的序号对应的功能配置文件,以通过该功能配置文件将登录窗体的各控件及操作行为展示在当前显示界面。
例如,在登录窗体的初始化过程中,可根据功能配置文件可创建两个标签,该两个标签的标题分别为“账号”和“密码”;然后再创建两个输入框,一个输入框显示“账号输入”,另一个输入框显示“密码输入”;最后再创建一个“登录”按钮,并根据布局文件中的坐标位置, 设置各控件的展示位置。
可选的,将所述窗体展示在当前显示界面的步骤还可以包括:
-若用户设备本地未存在该窗体序号,则创建该窗体序号对应的窗体;
-根据布局信息功能配置文件创建该窗体序号对应的各控件及初始化各控件的参数设置。
具体的,若用户设备本地不存在从该布局信息功能配置文件中获取的窗体序号,则表示在用户设备本地不存在该窗体序号对应的窗体。因此用户设备在本地创建该窗体序号对应的窗体,并根据布局信息功能配置文件创建该窗体序号对应的各控件及初始化各控件的参数设置。
以百度云管家在移动客户端上增加“BT下载按钮”为例,由于当前版本的移动客户端没有BT下载的功能,而在百度云服务器中已经在离线下载功能中增加了BT下载功能,因此只需在百度云管家的移动客户端上增加“BT下载按钮”并将该按钮的点击事件关联为从百度云服务器通过“BT下载”获取特定的文件。具体的,用户设备在创建“BT下载按钮”对应的窗体后,根据BT下载的布局信息功能配置文件创建“BT下载按钮”对应的各控件及初始化各控件的参数设置,从而实现对百度云的移动客户端增加“BT下载按钮”的操作。
在步骤S140中,用户设备根据操作命令调用程序控件的功能接口以实现所述应用功能的操作。
具体的,在当前显示的登录窗体中,用户通过点击“登录”按钮发送登录请求信令,则当用户设备在登录窗体中创建“登录”按钮时,可将该“登录”按钮对应的点击事件关联为发送请求操作以及通过从功能配置文件中获取登录请求相关服务路径地址等信息。当点击“登录”按钮时,激活发送请求操作,并设置登录服务路径地址,同时获取当前输入的用户账号及密码,完成登录命令发起,并根据返回的登录结果,进行窗体跳转处理或信息提示。
以用户登录百度云管家的操作为例,当用户在“账号”和“密码”的 输入框分别输入百度账号和密码后,点击“登录”按钮,用户设备根据该百度账号和密码对应的百度云的服务路径地址,将百度云中存储的数据显示在百度云管家的窗体中,从而实现对百度云的应用功能的操作。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,包括登录窗体在内的任何窗体采用上述方法的动态实现应用功能的方式,均应包含在本发明的范围内。
图3为根据本发明另一个实施例的用于动态实现应用功能的方法的流程示意图。本实施例的方法主要由用户设备来实现,其中,参照图1所示实施例中对用户设备所做的任何说明,均以引用的方式包含于此。
根据本实施例的方法包括步骤S100、步骤S110和步骤S120。其中,所述步骤S110进一步包括步骤S111,所述步骤S120进一步包括步骤S121。所述步骤S100已在参照图1中予以详述,在此不再赘述。
在步骤S111中,若布局信息功能配置文件中还包括Lua脚本文件,则用户设备从网络设备下载Lua脚本文件,并对该Lua脚本文件进行校验。
其中,Lua脚本文件是一种嵌入在应用中从而为应用提供灵活的扩展和定制功能的脚本语言,通过Lua脚本文件可实现对应用的新功能的扩展。
具体的,该网络设备接收到该用户设备发送的状态信息后,将该状态信息对应的布局信息功能配置文件的服务地址返回给该用户设备。该用户设备链接该服务地址下载该布局信息功能配置文件,该布局信息功能配置文件包括有布局文件、功能配置文件和Lua脚本文件。
可选的,该用户设备可在下载该布局信息功能配置文件之前先检 查本地存储的布局及配置信息的版本号与该布局信息功能配置文件是否同步。若不同步,则下载该布局信息功能配置文件;若同步则表示该用户设备无需对本地的特定应用程序进行更新。
可选的,该用户设备还可在下载该布局信息功能配置文件之后对该布局信息功能配置文件进行解密和/或校验。其中,该用户设备与该网络设备之间传输的文件可通过预先约定的密文、加密证书等进行加密。该用户设备可在下载该布局信息功能配置文件之后,基于预先约定的密文或加密证书对该布局信息功能配置文件进行解密,获得相应的布局文件、功能配置文件和Lua脚本文件。无论是否经过解密,该用户设备还可在下载该布局信息功能配置文件之后,对该布局信息功能配置文件中的布局文件、功能配置文件和Lua脚本文件进行校验,以确定该布局信息功能配置文件的完整性及安全性。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何接收网络设备反馈的布局信息功能配置文件的实现方式,均应包含在本发明的范围内。
在步骤S121中,用户设备根据布局信息功能配置文件中的布局文件、功能配置文件和Lua脚本文件创建窗体及程序控件,并建立程序控件与应用功能的链接。
具体的,如图9所示,用户设备根据该布局信息功能配置文件中的布局文件创建窗体、根据功能配置文件创建各控件并初始化各控件状态。若该该布局信息功能配置文件中存在Lua文件,则解析窗体加载数据请求信息,并且若存在数据请求信息,则窗体数据加载接口发起数据请求,根据数据请求反馈结果并初始化窗体展示数据。最后,用户设备展示该窗体。
以百度云管家的客户端增加自动云备份功能为例,由于当前版本的百度云管家客户端没有自动云备份功能,而新版本的百度云管家的客户端中已经增加了自动云备份功能。采用本实施例提供的用于动态实现应用功能的方法,自动云备份功能通过Lua脚本文件的扩展实 现,并且该Lua脚本文件由网络设备进行管理和维护。当装有旧版本的百度云管家客户端的用户设备从网络设备获取包括布局文件、功能配置文件和Lua脚本文件的布局信息功能配置文件后,可首先通过布局文件创建一个名称为“自动云备份”的按钮,并将该“自动云备份”的按钮更新到百度云管家客户端主窗体的右下角;然后通过功能配置文件在用户设备创建“自动备份”的地址目录,例如在根目录下创建名称为“自动备份”的文件夹;最后通过Lua脚本文件建立该“自动备份”文件夹与百度云服务器的链接,并且设置为每隔预定时间就将该“自动备份”文件夹中的数据同步到百度云数据库,从而无需下载新版本的百度云客户端安装文件,仅需下载布局信息功能配置文件即可实现对自动云备份功能的上线。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,包括百度云管家在内的任何应用程序采用上述方法的用于动态实现应用功能的方式对新上线的功能进行更新的方式,均应包含在本发明的范围内。
采用本实施例提供的用于动态实现应用功能的方法,可以通过布局信息功能配置文件在终端设备中创建显示窗体及程序控件,从而建立程序控件与应用功能的链接,以实现应用程序的快速开发、适配、发布,并且不通过发布新版本的应用程序即可实现特定分辨率的个性化适配及新功能上线和问题修正。
图4为根据本发明一个实施例的用于动态实现应用功能的装置的结构框图。该用于动态实现应用功能的装置(以下简称为“应用实现装置”)包括用于将状态信息发送给网络设备的装置(以下简称为“信息发送装置400”)、用于获取网络设备反馈的布局信息功能配置文件的装置(以下简称为“反馈接收装置为410”)、以及用于根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接的装置(以下简称为“窗体及控件创建装置420”)。
信息发送装置400将状态信息发送给网络设备。
可选的,如图7所示,该信息发送装置400可先将生成的鉴权信息发送到该网络设备,由该网络设备进行鉴权处理,该网络设备根据该鉴权信息对该用户设备鉴权通过后,将鉴权结果返回给该用户设备。
若该用户设备已经在该网络设备通过注册验证,则可省略鉴权的步骤,而由信息发送装置400直接将状态信息发送给该网络设备。其中,该状态信息可以包括该用户设备的型号、分辨率、系统版本号以及该用户设备中安装的应用的标识信息,该标识信息能够唯一地标识该应用其包括但不限于应用包名称、统一资源标识符、可唯一标识该应用的图片信息等。
反馈接收装置410获取网络设备反馈的布局信息功能配置文件。
该网络设备接收到该用户设备发送的状态信息后,将该状态信息对应的布局信息功能配置文件的服务地址返回给该用户设备。反馈接收装置410通过链接该服务地址下载该布局信息功能配置文件,该布局信息功能配置文件包括有布局文件和功能配置文件。
其中,所述服务地址用于指示反馈接收装置410下载该布局信息功能配置文件。可选的,该服务地址可包括该应用在不同类型的系统下的多个版本分别对应的下载地址信息,如适用于电脑版、安卓版、IOS版等不同类型的操作系统的多个版本分别对应的下载地址信息。
可选的,用于获取网络设备反馈的布局信息功能配置文件的装置可以包括:
-用于检测用户设备本地存储的布局及配置信息的版本号与所述布局信息功能配置文件是否同步的子装置(以下简称为“第一检测子装置”);
-用于若不同步,则下载所述布局信息功能配置文件的子装置(以下简称为“同步子装置”)。
该用户设备可在下载该布局信息功能配置文件之前通过第一检测子装置检查本地存储的布局及配置信息的版本号与该布局信息功能配置文件是否同步。若不同步,则通过同步子装置下载该布局信息 功能配置文件;若同步则表示该用户设备无需对本地的特定应用程序进行更新。
可选的,用于下载所述布局信息功能配置文件的子装置可以包括:
-用于对所述布局信息功能配置文件中的布局文件和功能配置文件进行校验,以确定所述布局信息功能配置文件的完整性及安全性的模块(以下简称为“校验模块”)。
该用户设备还可在下载该布局信息功能配置文件之后通过校验模块对该布局信息功能配置文件进行解密和/或校验。其中,该用户设备与该网络设备之间传输的文件可通过预先约定的密文、加密证书等进行加密。该用户设备可在下载该布局信息功能配置文件之后,基于预先约定的密文或加密证书对该布局信息功能配置文件进行解密,获得相应的布局文件和功能配置文件。无论是否经过解密,该用户设备还可在下载该布局信息功能配置文件之后,对该布局信息功能配置文件中的布局文件和功能配置文件进行校验,以确定该布局信息功能配置文件的完整性及安全性。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何接收网络设备反馈的布局信息功能配置文件的实现方式,均应包含在本发明的范围内。
窗体及控件创建装置420根据布局信息功能配置文件创建窗体及程序控件,并建立程序控件与应用功能的链接。
具体的,窗体及控件创建装置420根据该布局信息功能配置文件中的布局文件创建窗体,以及根据该布局信息功能配置文件中的功能配置文件创建各控件并初始化各控件状态及内容,并根据功能配置文件为该窗体的各控件建立与应用功能的链接。
例如,原有百度云管家的移动客户端支持的移动终端设备的最大分辨率为1280×720,而目前已经有采用2K分辨率(即2560×1440)的移动终端设备上市,因此需要发布新版本的百度云管家的移动客户端 以支持2K分辨率的移动终端设备。
在本实施例中,信息发送装置400首先将包括分辨率的状态信息发送给网络设备。在网络设备上存储有各分辨率对应的布局文件、功能配置文件等以单独文件目录管理,保证每个分辨率的相关文件独立保存,其中新版本对应的2K分辨率的布局文件和功能配置文件所保存的目录可命名为2K。当网络设备根据状态信息确定对应的用户设备的分辨率为2K时,将2K分辨率的布局文件和功能配置文件的存储地址发送给用户设备,反馈接收装置410从该存储地址下载2K分辨率的布局文件和功能配置文件。最后,窗体及控件创建装置420根据2K分辨率的布局文件和功能配置文件创建用于2K分辨率显示的窗体及程序控件,并建立该程序控件与应用功能的链接,从而使用户在该用户设备中打开百度云管家的移动客户端时,更新后的百度云管家将以2K的分辨率显示在该用户设备中。
图5为本发明另一个实施例的用于动态实现应用功能的装置(以下简称为“应用实现装置”)的结构框图。其中,参照图4所示实施例中对用户设备所做的任何说明,均以引用的方式包含于此。
本实施例的应用实现装置包括信息发送装置400、反馈接收装置410、窗体及控件创建装置420以及用于将所述窗体展示在当前显示界面的装置(以下简称为“展示装置430”)和用于根据操作命令调用程序控件的功能接口以实现所述应用功能的操作的装置(以下简称为“功能实现装置440”)。其中,所述信息发送装置400、反馈接收装置410和窗体及控件创建装置420已在参照图4中予以详述,在此不再赘述。
展示装置430将所述窗体展示在当前显示界面的装置。
具体的,当用户设备创建窗体完毕后,可将创建的窗体展示在当前显示界面,并初始化窗体数据。
可选的,如图8所示,展示装置430具体可以包括:
-用于从所述布局信息功能配置文件中获取窗体序号及对应的布局文件的子装置(以下简称为“获取子装置”);
-用于若终端设备本地存在该窗体序号,则读取该窗体序号在所述布局信息功能配置文件中对应的功能配置文件的子装置(以下简称为“文件读取子装置”);
-用于通过所述功能配置文件将所述窗体的各控件及操作行为展示在当前显示界面的子装置(以下简称为“操作展示子装置”)。
具体的,本步骤以用户设备创建的窗体是登录窗体为例进行说明。当用户设备下载布局信息功能配置文件之后,当需要展示登录窗体时,可首先在窗体管理器中查找是否已经创建登录窗体。若窗体管理器中存在已创建的登录窗体,则先通过获取子装置在与该用户设备的屏幕分辨率相对应的文件目录中获取该已创建的登录窗体的布局文件,并通过文件读取子装置从该布局文件中获取登录窗体的序号对应的功能配置文件,最后由操作展示子装置通过该功能配置文件将登录窗体的各控件及操作行为展示在当前显示界面。
例如,在登录窗体的初始化过程中,可根据功能配置文件可创建两个标签,该两个标签的标题分别为“账号”和“密码”;然后再创建两个输入框,一个输入框显示“账号输入”,另一个输入框显示“密码输入”;最后再创建一个“登录”按钮,并根据布局文件中的坐标位置,设置各控件的展示位置。
可选的,用于将所述窗体展示在当前显示界面的装置还可以包括:
-用于若用户设备本地未存在该窗体序号,则创建该窗体序号对应的窗体的子装置(以下简称为“窗体创建子装置”);
-用于根据所述布局信息功能配置文件创建该窗体序号对应的各控件及初始化各控件的参数设置的子装置(以下简称为“初始化子装置”)。
具体的,若用户设备本地不存在从该布局信息功能配置文件中获取的窗体序号,则表示在用户设备本地不存在该窗体序号对应的窗体。因此窗体创建子装置在本地创建该窗体序号对应的窗体,并由初始化子装置根据布局信息功能配置文件创建该窗体序号对应的各控件及初始化各控件的参数设置。
以百度云管家在移动客户端上增加“BT下载按钮”为例,由于当前版本的移动客户端没有BT下载的功能,而在百度云服务器中已经在离线下载功能中增加了BT下载功能,因此只需在百度云管家的移动客户端上增加“BT下载按钮”并将该按钮的点击事件关联为从百度云服务器通过“BT下载”获取特定的文件。具体的,窗体创建子装置在创建“BT下载按钮”对应的窗体后,初始化子装置根据BT下载的布局信息功能配置文件创建“BT下载按钮”对应的各控件及初始化各控件的参数设置,从而实现对百度云的移动客户端增加“BT下载按钮”的操作。
功能实现装置440根据操作命令调用程序控件的功能接口以实现所述应用功能的操作。
具体的,在当前显示的登录窗体中,用户通过点击“登录”按钮发送登录请求信令,则当窗体创建子装置在登录窗体中创建“登录”按钮时,可将该“登录”按钮对应的点击事件关联为发送请求操作以及通过从功能配置文件中获取登录请求相关服务路径地址等信息。当点击“登录”按钮时,功能实现装置440激活发送请求操作,并设置登录服务路径地址,同时获取当前输入的用户账号及密码,完成登录命令发起,并根据返回的登录结果,进行窗体跳转处理或信息提示。
以用户登录百度云管家的操作为例,当用户在“账号”和“密码”的输入框分别输入百度账号和密码后,点击“登录”按钮,功能实现装置440根据该百度账号和密码对应的百度云的服务路径地址,将百度云中存储的数据显示在百度云管家的窗体中,从而实现对百度云的应用功能的操作。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,包括登录窗体在内的任何窗体采用上述用于动态实现应用功能的方式,均应包含在本发明的范围内。
图6为本发明另一个实施例的用于动态实现应用功能的装置的结 构框图。其中,参照图4所示实施例中对用户设备所做的任何说明,均以引用的方式包含于此。
本实施例的应用实现装置包括信息发送装置400、反馈接收装置410和窗体及控件创建装置420。其中,所述反馈接收装置410进一步包括用于从网络设备下载所述Lua脚本文件,并对该Lua脚本文件进行校验的模块(以下简称为“文件下载模块411”),所述窗体及控件创建装置420进一步包括用于根据用户的操作命令调用所述Lua脚本文件以实现所述应用功能的操作的模块(以下简称为“功能实现模块421”)。所述步骤S100已在参照图1中予以详述,在此不再赘述。其中,所述信息发送装置400、反馈接收装置410和窗体及控件创建装置420已在参照图4中予以详述,在此不再赘述。
若布局信息功能配置文件中还包括Lua脚本文件,则文件下载模块411从网络设备下载Lua脚本文件,并对该Lua脚本文件进行校验。
其中,Lua脚本文件是一种嵌入在应用中从而为应用提供灵活的扩展和定制功能的脚本语言,通过Lua脚本文件可实现对应用的新功能的扩展。
具体的,该网络设备接收到该用户设备发送的状态信息后,将该状态信息对应的布局信息功能配置文件的服务地址返回给该用户设备。文件下载模块411链接该服务地址下载该布局信息功能配置文件,该布局信息功能配置文件包括有布局文件、功能配置文件和Lua脚本文件。
可选的,该用户设备还可在下载该布局信息功能配置文件之后通过文件下载模块411对Lua脚本文件进行校验,以确定该布局信息功能配置文件的完整性及安全性。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何接收网络设备反馈的布局信息功能配置文件的实现方式,均应包含在本发明的范围内。
功能实现模块421根据布局信息功能配置文件中的布局文件、功能配置文件和Lua脚本文件创建窗体及程序控件,并建立程序控件与应用功能的链接。
具体的,如图9所示,功能实现模块421根据该布局信息功能配置文件中的布局文件创建窗体、根据功能配置文件创建各控件并初始化各控件状态。若该该布局信息功能配置文件中存在Lua文件,则解析窗体加载数据请求信息,并且若存在数据请求信息,则窗体数据加载接口发起数据请求,根据数据请求反馈结果并初始化窗体展示数据。最后,功能实现模块421展示该窗体。
以百度云管家的客户端增加自动云备份功能为例,由于当前版本的百度云管家客户端没有自动云备份功能,而新版本的百度云管家的客户端中已经增加了自动云备份功能。在本实施例中,自动云备份功能通过Lua脚本文件的扩展实现,并且该Lua脚本文件由网络设备进行管理和维护。当装有旧版本的百度云管家客户端的用户设备通过文件下载模块411从网络设备获取包括布局文件、功能配置文件和Lua脚本文件的布局信息功能配置文件后,可首先通过布局文件创建一个名称为“自动云备份”的按钮,并将该“自动云备份”的按钮更新到百度云管家客户端主窗体的右下角;然后通过功能配置文件在用户设备创建“自动备份”的地址目录,例如在根目录下创建名称为“自动备份”的文件夹;最后由功能实现模块421通过Lua脚本文件建立该“自动备份”文件夹与百度云服务器的链接,并且设置为每隔预定时间就将该“自动备份”文件夹中的数据同步到百度云数据库,从而无需下载新版本的百度云客户端安装文件,仅需下载布局信息功能配置文件即可实现对自动云备份功能的上线。
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,包括百度云管家在内的任何应用程序采用上述实施例对新上线的功能进行更新的方式,均应包含在本发明的范围内。
采用本实施例提供的用于动态实现应用功能的装置,可以通过布 局信息功能配置文件在终端设备中创建显示窗体及程序控件,从而建立程序控件与应用功能的链接,以实现应用程序的快速开发、适配、发布,并且不通过发布新版本的应用程序即可实现特定分辨率的个性化适配及新功能上线和问题修正。
需要注意的是,本发明可在软件和/或软件与硬件的组合体中被实施,例如,本发明的各个装置可采用专用集成电路(ASIC)或任何其他类似硬件设备来实现。在一个实施例中,本发明的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本发明的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本发明的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。
虽然前面特别示出并且描述了示例性实施例,但是本领域技术人员将会理解的是,在不背离权利要求书的精神和范围的情况下,在其形式和细节方面可以有所变化。这里所寻求的保护在所附权利要求书中做了阐述。在下列编号条款中规定了各个实施例的这些和其他方面:
1、一种用于动态实现应用功能的方法,其包括:
将状态信息发送给网络设备;
获取网络设备反馈的布局信息功能配置文件;
根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接。
2、条款1的方法,还包括:
将所述窗体展示在当前显示界面;
根据操作命令调用程序控件的功能接口以实现所述应用功能的操作。
3、条款2的方法,将所述窗体展示在当前显示界面的步骤包括:
从所述布局信息功能配置文件中获取窗体序号及对应的布局文件;
若终端设备本地存在该窗体序号,则读取该窗体序号在所述布局信息功能配置文件中对应的功能配置文件;
通过所述功能配置文件将所述窗体的各控件及操作行为展示在当前显示界面。
4、条款3的方法,将所述窗体展示在当前显示界面的过程还包括:
若用户设备本地未存在该窗体序号,则创建该窗体序号对应的窗体;
根据所述布局信息功能配置文件创建该窗体序号对应的各控件及初始化各控件的参数设置。
5、条款1的方法,获取网络设备反馈的布局信息功能配置文件的步骤包括:
检测用户设备本地存储的布局及配置信息的版本号与所述布局信息功能配置文件是否同步;
若不同步,则下载所述布局信息功能配置文件。
6、条款5的方法,下载所述布局信息功能配置文件的步骤包括:
对所述布局信息功能配置文件中的布局文件和功能配置文件进 行校验,以确定所述布局信息功能配置文件的完整性及安全性。
7、条款5的方法,若所述布局信息功能配置文件中还包括Lua脚本文件,则从网络设备下载所述布局信息功能配置文件的步骤还包括:
从网络设备下载所述Lua脚本文件,并对该Lua脚本文件进行校验。
8、条款7的方法,根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接的步骤包括:
根据操作命令调用所述Lua脚本文件以实现所述应用功能的操作。
9、一种用于动态实现应用功能的装置,其包括:
用于将状态信息发送给网络设备的装置;
用于获取网络设备反馈的布局信息功能配置文件的装置;
用于根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接的装置。
10、条款9的装置,还包括:
用于将所述窗体展示在当前显示界面的装置;
用于根据操作命令调用程序控件的功能接口以实现所述应用功能的操作的装置。
11、条款10的装置,用于将所述窗体展示在当前显示界面的装置包括:
用于从所述布局信息功能配置文件中获取窗体序号及对应的布局文件的子装置;
用于若终端设备本地存在该窗体序号,则读取该窗体序号在所述布局信息功能配置文件中对应的功能配置文件的子装置;
用于通过所述功能配置文件将所述窗体的各控件及操作行为展示在当前显示界面的子装置。
12、条款11的装置,用于将所述窗体展示在当前显示界面的装置还包括:
用于若用户设备本地未存在该窗体序号,则创建该窗体序号对应的窗体的子装置;
用于根据所述布局信息功能配置文件创建该窗体序号对应的各控件及初始化各控件的参数设置的子装置。
13、条款9的装置,用于获取网络设备反馈的布局信息功能配置文件的装置包括:
用于检测用户设备本地存储的布局及配置信息的版本号与所述布局信息功能配置文件是否同步的子装置;
用于若不同步,则下载所述布局信息功能配置文件的子装置。
14、条款13的装置,用于下载所述布局信息功能配置文件的子装置包括:
用于对所述布局信息功能配置文件中的布局文件和功能配置文件进行校验,以确定所述布局信息功能配置文件的完整性及安全性的模块。
15、条款14的装置,若所述布局信息功能配置文件中还包括Lua脚本文件,则用于若不同步,则从网络设备下载所述布局信息功能配置文件的子装置还包括:
用于从网络设备下载所述Lua脚本文件,并对该Lua脚本文件进行校验的模块。
16、条款15的装置,用于根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接的装置包括:
用于根据用户的操作命令调用所述Lua脚本文件以实现所述应用功能的操作的模块。

Claims (18)

  1. 一种用于动态实现应用功能的方法,其中,所述方法包括:
    将状态信息发送给网络设备;
    获取网络设备反馈的布局信息功能配置文件;
    根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    将所述窗体展示在当前显示界面;
    根据操作命令调用程序控件的功能接口以实现所述应用功能的操作。
  3. 根据权利要求2所述的方法,其中,将所述窗体展示在当前显示界面的步骤包括:
    从所述布局信息功能配置文件中获取窗体序号及对应的布局文件;
    若终端设备本地存在该窗体序号,则读取该窗体序号在所述布局信息功能配置文件中对应的功能配置文件;
    通过所述功能配置文件将所述窗体的各控件及操作行为展示在当前显示界面。
  4. 根据权利要求3所述的方法,其中,将所述窗体展示在当前显示界面的过程还包括:
    若用户设备本地未存在该窗体序号,则创建该窗体序号对应的窗体;
    根据所述布局信息功能配置文件创建该窗体序号对应的各控件及初始化各控件的参数设置。
  5. 根据权利要求1所述的方法,其中,获取网络设备反馈的布局信 息功能配置文件的步骤包括:
    检测用户设备本地存储的布局及配置信息的版本号与所述布局信息功能配置文件是否同步;
    若不同步,则下载所述布局信息功能配置文件。
  6. 根据权利要求5所述的方法,其中,下载所述布局信息功能配置文件的步骤包括:
    对所述布局信息功能配置文件中的布局文件和功能配置文件进行解密和/或校验,以确定所述布局信息功能配置文件的完整性及安全性。
  7. 根据权利要求6所述的方法,其中,根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接的步骤包括:
    根据操作命令调用所述Lua脚本文件以实现所述应用功能的操作。
  8. 一种用于动态实现应用功能的装置,其中,所述装置包括:
    用于将状态信息发送给网络设备的装置;
    用于获取网络设备反馈的布局信息功能配置文件的装置;
    用于根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接的装置。
  9. 根据权利要求8所述的装置,其中,所述装置还包括:
    用于将所述窗体展示在当前显示界面的装置;
    用于根据操作命令调用程序控件的功能接口以实现所述应用功能的操作的装置。
  10. 根据权利要求9所述的装置,其中,用于将所述窗体展示在当前显示界面的装置包括:
    用于从所述布局信息功能配置文件中获取窗体序号及对应的布局文 件的子装置;
    用于若终端设备本地存在该窗体序号,则读取该窗体序号在所述布局信息功能配置文件中对应的功能配置文件的子装置;
    用于通过所述功能配置文件将所述窗体的各控件及操作行为展示在当前显示界面的子装置。
  11. 根据权利要求10所述的装置,其中,用于将所述窗体展示在当前显示界面的装置还包括:
    用于若用户设备本地未存在该窗体序号,则创建该窗体序号对应的窗体的子装置;
    用于根据所述布局信息功能配置文件创建该窗体序号对应的各控件及初始化各控件的参数设置的子装置。
  12. 根据权利要求8所述的装置,其中,用于获取网络设备反馈的布局信息功能配置文件的装置包括:
    用于检测用户设备本地存储的布局及配置信息的版本号与所述布局信息功能配置文件是否同步的子装置;
    用于若不同步,则下载所述布局信息功能配置文件的子装置。
  13. 根据权利要求12所述的装置,其中,用于下载所述布局信息功能配置文件的子装置包括:
    用于对所述布局信息功能配置文件中的布局文件和功能配置文件进行解密和/或校验,以确定所述布局信息功能配置文件的完整性及安全性的模块。
  14. 根据权利要求13所述的装置,其中,若所述布局信息功能配置文件中还包括Lua脚本文件,则用于若不同步,则从网络设备下载所述布局信息功能配置文件的子装置还包括:
    用于从网络设备下载所述Lua脚本文件,并对该Lua脚本文件进行 校验的模块。
  15. 根据权利要求14所述的装置,其中,用于根据所述布局信息功能配置文件创建窗体及程序控件,并建立所述程序控件与应用功能的链接的装置包括:
    用于根据用户的操作命令调用所述Lua脚本文件以实现所述应用功能的操作的模块。
  16. 一种非易失性计算机可读介质,所述非易失性计算机可读介质包括计算机代码,当所述计算机代码被执行时,如权利要求1至8中任一项所述的方法被执行。
  17. 一种计算机程序产品,当所述计算机程序产品被计算机设备执行时,如权利要求1至8中任一项所述的方法被执行。
  18. 一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器中存储有计算机代码,所述处理器被配置来通过执行所述计算机代码以执行如权利要求1至8中任一项所述的方法。
PCT/CN2015/092959 2015-02-03 2015-10-27 一种用于动态实现应用功能的方法和装置 Ceased WO2016124013A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/301,363 US10127057B2 (en) 2015-02-03 2015-10-27 Method and apparatus for dynamically implementing application function

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510055952.8A CN104657174A (zh) 2015-02-03 2015-02-03 一种用于动态实现应用功能的方法和装置
CN201510055952.8 2015-02-03

Publications (1)

Publication Number Publication Date
WO2016124013A1 true WO2016124013A1 (zh) 2016-08-11

Family

ID=53248353

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/092959 Ceased WO2016124013A1 (zh) 2015-02-03 2015-10-27 一种用于动态实现应用功能的方法和装置

Country Status (3)

Country Link
US (1) US10127057B2 (zh)
CN (1) CN104657174A (zh)
WO (1) WO2016124013A1 (zh)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069294A (zh) * 2019-04-28 2019-07-30 努比亚技术有限公司 第三方应用适应的配置方法、系统、可穿戴设备及介质
CN110519088A (zh) * 2019-08-15 2019-11-29 上海易点时空网络有限公司 配置服务容灾方法及系统
CN110543335A (zh) * 2019-08-15 2019-12-06 上海易点时空网络有限公司 应用程序配置管理方法及系统
CN110569085A (zh) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 配置文件加载方法及系统
CN110572277A (zh) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 机器管理方法及系统
CN111880496A (zh) * 2020-07-22 2020-11-03 安徽海螺信息技术工程有限责任公司 一种基于商混控制的erp系统与工控系统相融合的方法
CN112306563A (zh) * 2020-11-03 2021-02-02 深圳软牛科技有限公司 重置ios屏幕使用时间密码的方法、装置、设备及存储介质
CN112817681A (zh) * 2021-02-09 2021-05-18 杭州海康威视系统技术有限公司 一种数据显示方法、装置、设备及机器可读存储介质
CN113961242A (zh) * 2020-07-20 2022-01-21 荣耀终端有限公司 布局文件的转换方法、装置、电子设备及存储介质

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657174A (zh) * 2015-02-03 2015-05-27 百度在线网络技术(北京)有限公司 一种用于动态实现应用功能的方法和装置
CN107203389B (zh) * 2016-03-18 2021-01-22 百度在线网络技术(北京)有限公司 控件展现方法及装置
CN107203372B (zh) * 2016-03-18 2021-03-19 百度在线网络技术(北京)有限公司 控件展现方法及装置
CN106055988B (zh) * 2016-05-25 2019-01-22 东方网力科技股份有限公司 针对控件的权限控制方法及装置
JP2018097659A (ja) * 2016-12-14 2018-06-21 株式会社デンソーテン 出力処理装置および出力処理方法
CN106648790A (zh) * 2016-12-28 2017-05-10 北京金山安全软件有限公司 一种应用程序的实现方法、装置及电子设备
CN107423079A (zh) * 2017-03-10 2017-12-01 武汉斗鱼网络科技有限公司 一种同步脚本的方法、解析消息的方法和设备
CN110968823A (zh) * 2018-09-30 2020-04-07 华为技术有限公司 一种应用客户端启动方法,业务服务器和客户端设备
CN109542450B (zh) * 2018-11-08 2021-10-01 国网河南省电力公司电力科学研究院 智能变电站过程层智能组件实现方法及装置
CN109729156B (zh) * 2018-12-18 2021-12-28 中信百信银行股份有限公司 基于后端应用服务变更自动化调整中间件的连接方法
CN109831532B (zh) * 2019-03-18 2020-09-15 北京字节跳动网络技术有限公司 数据分享方法、装置、设备及介质
CN110535695A (zh) * 2019-08-15 2019-12-03 上海易点时空网络有限公司 配置信息勘误方法及系统
CN111245898B (zh) * 2019-12-31 2022-06-07 中国建设银行股份有限公司 一种网络设备上线方法、装置、服务器及存储介质
US11360860B2 (en) 2020-01-30 2022-06-14 Rubrik, Inc. Exporting a database from a foreign database recovery environment
US11609828B2 (en) 2020-01-30 2023-03-21 Rubrik, Inc. Utilizing a tablespace to export to a native database recovery environment
US11604761B2 (en) * 2020-01-30 2023-03-14 Rubrik, Inc. Utilizing a tablespace to export from a foreign database recovery environment
US11467925B2 (en) 2020-01-30 2022-10-11 Rubrik, Inc. Exporting a database to a native database recovery environment
CN111427631B (zh) * 2020-04-01 2022-03-15 中电万维信息技术有限责任公司 一种多样化移动应用功能模块的动态配置方法
CN111857701A (zh) * 2020-07-24 2020-10-30 深圳市和讯华谷信息技术有限公司 终端动态界面显示方法、装置、计算机设备及存储介质
CN112714148A (zh) * 2020-11-10 2021-04-27 海尔数字科技(青岛)有限公司 一种界面配置方法、装置、设备及介质
CN112527351B (zh) * 2020-12-07 2024-06-04 深圳创维-Rgb电子有限公司 远程更新终端应用界面布局方法、系统、设备及存储介质
US12346219B2 (en) * 2021-06-21 2025-07-01 Vinpower Inc. Method for a charging unit that backs up data stored on a mobile device
CN113419760B (zh) * 2021-06-24 2024-11-08 广联达科技股份有限公司 打开/保存工程文件的方法、装置、计算机设备和介质
CN113434847B (zh) * 2021-06-25 2023-10-27 深圳赛安特技术服务有限公司 应用程序的隐私模块处理方法、装置、电子设备及介质
CN113760258B (zh) * 2021-08-30 2025-02-11 中国建设银行股份有限公司 一种系统功能集成方法、装置、设备及存储介质
CN114528529A (zh) * 2022-02-15 2022-05-24 广州经传多赢投资咨询有限公司 一种内存xml文件加密方法
CN114936305A (zh) * 2022-05-31 2022-08-23 中国船舶重工集团公司第七0七研究所 一种基于xml的实时数据监测人机交互界面定义方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005045699A1 (fr) * 2003-11-05 2005-05-19 Thierry Royer Procede et systeme de diffusion de documents vers des terminaux disposant de capacites d’affichage limitees, tels que des terminaux mobiles
CN103095839A (zh) * 2013-01-21 2013-05-08 中国工商银行股份有限公司 一种客户端数据展现系统及方法
CN104007991A (zh) * 2014-06-06 2014-08-27 百度在线网络技术(北京)有限公司 应用程序界面布局调整方法和装置
CN104657174A (zh) * 2015-02-03 2015-05-27 百度在线网络技术(北京)有限公司 一种用于动态实现应用功能的方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034349A (zh) * 2007-04-06 2007-09-12 西安万年科技实业有限公司 基于功能设计的数据库应用系统开发平台
CN101441624A (zh) * 2007-11-22 2009-05-27 上海妙来信息科技有限公司 用户自定义界面显示数据的方法及系统
US8645491B2 (en) * 2010-12-18 2014-02-04 Qualcomm Incorporated Methods and apparatus for enabling a hybrid web and native application
CN104557174B (zh) 2015-01-28 2017-09-15 福建农林大学 一种烟草专用复混有机肥及其制备方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005045699A1 (fr) * 2003-11-05 2005-05-19 Thierry Royer Procede et systeme de diffusion de documents vers des terminaux disposant de capacites d’affichage limitees, tels que des terminaux mobiles
CN103095839A (zh) * 2013-01-21 2013-05-08 中国工商银行股份有限公司 一种客户端数据展现系统及方法
CN104007991A (zh) * 2014-06-06 2014-08-27 百度在线网络技术(北京)有限公司 应用程序界面布局调整方法和装置
CN104657174A (zh) * 2015-02-03 2015-05-27 百度在线网络技术(北京)有限公司 一种用于动态实现应用功能的方法和装置

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069294A (zh) * 2019-04-28 2019-07-30 努比亚技术有限公司 第三方应用适应的配置方法、系统、可穿戴设备及介质
CN110519088A (zh) * 2019-08-15 2019-11-29 上海易点时空网络有限公司 配置服务容灾方法及系统
CN110543335A (zh) * 2019-08-15 2019-12-06 上海易点时空网络有限公司 应用程序配置管理方法及系统
CN110569085A (zh) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 配置文件加载方法及系统
CN110572277A (zh) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 机器管理方法及系统
CN113961242A (zh) * 2020-07-20 2022-01-21 荣耀终端有限公司 布局文件的转换方法、装置、电子设备及存储介质
CN113961242B (zh) * 2020-07-20 2022-09-20 荣耀终端有限公司 布局文件的转换方法、装置、电子设备及存储介质
CN111880496A (zh) * 2020-07-22 2020-11-03 安徽海螺信息技术工程有限责任公司 一种基于商混控制的erp系统与工控系统相融合的方法
CN112306563A (zh) * 2020-11-03 2021-02-02 深圳软牛科技有限公司 重置ios屏幕使用时间密码的方法、装置、设备及存储介质
CN112306563B (zh) * 2020-11-03 2023-11-17 深圳软牛科技有限公司 重置ios屏幕使用时间密码的方法、装置、设备及存储介质
CN112817681A (zh) * 2021-02-09 2021-05-18 杭州海康威视系统技术有限公司 一种数据显示方法、装置、设备及机器可读存储介质

Also Published As

Publication number Publication date
US10127057B2 (en) 2018-11-13
US20170185431A1 (en) 2017-06-29
CN104657174A (zh) 2015-05-27

Similar Documents

Publication Publication Date Title
WO2016124013A1 (zh) 一种用于动态实现应用功能的方法和装置
US10827008B2 (en) Integrated user interface for consuming services across different distributed networks
US20210271472A1 (en) Application Wrapping for Application Management Framework
US11663175B2 (en) Deployment of applications conforming to application data sharing and decision service platform schema
US10003672B2 (en) Apparatus, systems and methods for deployment of interactive desktop applications on distributed infrastructures
US10976981B2 (en) Remote desktop exporting
US9262193B2 (en) Multi-tier platform-as-a-service deployment reduced to single-tier architecture for development
CN103189839A (zh) 用于多部件计算机环境的自动化部署的系统和方法
WO2017071207A1 (zh) 一种应用安装方法、相关装置及应用安装系统
US8302165B2 (en) Establishing trust relationships between computer systems
US20170272420A1 (en) Web client plugin manager in vcenter managed object browser
CN114024841A (zh) 一种服务器集群部署方法、装置、计算设备及存储介质
US10114627B2 (en) Direct build assistance
US10178170B2 (en) Browser-based virtual media administration
US10291743B2 (en) Configuring service endpoints in native client applications
US12495033B2 (en) Testing digital certificates in an execution environment of a computing network
US12495032B2 (en) Orchestrating distribution of digital certificates to an execution environment of a computing network
US20250373596A1 (en) Orchestrating Testing Of Digital Certificates In An Execution Environment Of A Computing Network
WO2025229684A1 (en) Method and system for developing multi-platform applications
CN121210017A (zh) 应用操作方法和电子设备
Marchioni et al. Mastering JBoss Enterprise Application Platform 7
Ciliberti Mobile, Social, and Cloud Technologies
HK1225474A1 (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: 15880955

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15301363

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15880955

Country of ref document: EP

Kind code of ref document: A1