WO2019011141A1 - Startup and configuration method, apparatus and device, medium, and operating system - Google Patents

Startup and configuration method, apparatus and device, medium, and operating system Download PDF

Info

Publication number
WO2019011141A1
WO2019011141A1 PCT/CN2018/093951 CN2018093951W WO2019011141A1 WO 2019011141 A1 WO2019011141 A1 WO 2019011141A1 CN 2018093951 W CN2018093951 W CN 2018093951W WO 2019011141 A1 WO2019011141 A1 WO 2019011141A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
software
data
resource data
information
Prior art date
Application number
PCT/CN2018/093951
Other languages
French (fr)
Chinese (zh)
Inventor
罗自荣
王日凡
刘敏
华超
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019011141A1 publication Critical patent/WO2019011141A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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/445Program loading or initiating

Definitions

  • the present application relates to the field of computer technology, and in particular, to a startup method and apparatus, a startup configuration method and apparatus, a terminal device, a server, a readable medium, and an operating system.
  • Software is a collection of computer data and instructions organized in a specific order, and users can't do without software using terminal devices such as computers.
  • the technical problem to be solved by the embodiments of the present application is to provide a startup method to improve the startup efficiency of the software.
  • the embodiment of the present application further provides an activation device, a startup configuration method and device, a terminal device, a computing device, a computer readable medium and an operating system for ensuring the foregoing method. Implementation and application.
  • the embodiment of the present application discloses a startup method, where the method includes: receiving a software startup instruction; acquiring resource data of a corresponding setting page of the software, where the software includes an operating system and/or An application; loading the resource data to display a corresponding setting page.
  • the embodiment of the present application further discloses a startup configuration method, including: dividing resource data of software into at least two resource data according to a page, wherein one resource data corresponds to a setting page, and the software includes an operating system and/or an application.
  • the resource data is separately stored.
  • the embodiment of the present application further discloses a booting device, where the device includes: a receiving module, configured to receive a software startup instruction; and an acquiring module, configured to acquire resource data corresponding to the software setting page, where the software The operating system and/or the application program are included; the loading module is configured to load the resource data; and the display module is configured to display a corresponding setting page.
  • the embodiment of the present application further discloses a startup configuration apparatus, including: a division module, configured to divide resource data of the software into at least two resource data according to a page, where one resource data corresponds to a setting page, and the software includes an operating system. And/or an application; a storage module, configured to separately store the resource data.
  • the embodiment of the present application further discloses a terminal device, including: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, The terminal device is caused to perform the method as described in one or more of the embodiments of the present application.
  • the embodiment of the present application further discloses one or more machine readable mediums having stored thereon instructions that, when executed by one or more processors, cause the terminal device to perform one or more of the embodiments as described in the embodiments of the present application. method.
  • the embodiment of the present application also discloses a server, including: one or more processors; and one or more machine readable mediums on which instructions are stored, when executed by the one or more processors, The server performs the method as described in one or more of the embodiments of the present application.
  • the embodiment of the present application also discloses one or more machine readable mediums having stored thereon instructions that, when executed by one or more processors, cause the server to perform the method as described in one or more of the embodiments of the present application. .
  • the embodiment of the present application further discloses an operating system, including: a loading unit, receiving a software startup instruction; acquiring resource data of a setting page; loading the resource data; and displaying a corresponding setting page.
  • the embodiments of the present application include the following advantages:
  • the resource data corresponding to the software setting page may be acquired, and then the resource data is loaded and displayed, so that only the device is loaded during the startup process.
  • the resources of the page can effectively reduce the startup time and improve the startup efficiency.
  • FIG. 1 is a schematic diagram of a startup process of the present application
  • FIG. 2 is a flow chart showing the steps of an embodiment of a startup method of the present application
  • FIG. 3 is a structural block diagram of an embodiment of a boot configuration apparatus of the present application.
  • FIG. 4 is a flow chart showing the steps of another embodiment of the startup method of the present application.
  • Figure 5 is a flow chart showing the steps of an embodiment of the starting device of the present application.
  • FIG. 6 is a flow chart showing the steps of an embodiment of a startup configuration apparatus of the present application.
  • FIG. 7 is a flow chart showing the steps of another embodiment of the startup configuration apparatus of the present application.
  • FIG. 8 is a schematic structural diagram of hardware of a device according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of hardware of a device according to another embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of an operating system according to an embodiment of the present application.
  • the software includes an operating system and/or an application program
  • the terminal device may be run by the operating system
  • the application program may be installed in a local application of the operating system or a network application, and when the terminal needs to run, The network gets the resources to run the web application.
  • FIG. 1 a software startup diagram of an embodiment of the present application is shown.
  • the embodiment may divide the software into at least two resource data according to the page, including resource data of the setting page, and resource data of at least one non-setting page. Therefore, when the software is started, the resource data of the setting page is acquired, the resource data of the setting page is loaded, and the page of the setting page is displayed, so that the software page is quickly displayed. Other pages can be loaded when they are idle or when they need it.
  • the setting page displayed when the software is started is separated from the non-setting page that is not displayed, so that the displayed setting page resource is loaded at the startup, the required loading resources are reduced to reduce the startup time, and the startup efficiency is improved.
  • the resource data includes various resources of the page, such as text, image, video, and other element data displayed on the page, and attribute data such as layout and size of the resource, and also supports background resource data of the page. , such as code and other data.
  • the setting page is a page for displaying and executing according to the software, and may be set according to requirements, such as a homepage of the software, a recommendation page of the software, a page associated with the software, etc., that is, the setting page. It can refer to the page that is triggered by the non-user operation after the software is started.
  • the setting page may be one or more. For example, after displaying a recommended page after the software is started, and automatically disappearing into the first page of the software in a short time, the recommended page and the first page are determined as setting pages.
  • an advertisement page or a function introduction page, etc.
  • both pages serve as setting pages.
  • FIG. 2 a flow chart of steps of an embodiment of a startup method of the present application is shown, which may specifically include the following steps:
  • Step 202 Receive a software startup instruction.
  • Step 204 Obtain resource data of the software corresponding setting page, where the software includes an operating system and/or an application.
  • Step 206 Load the resource data to display a corresponding setting page.
  • the resource data of the corresponding setting page of the software may be acquired, and the setting page is the page that is triggered by the non-user operation after the startup.
  • the software may be invoked corresponding to the locally installed resource, and the software may be invoked on the network side, such as software installed in the cloud server, and the local registry of the terminal is registered and installed, and the software is started.
  • the resource of the cloud server can be called based on the information registered locally, and then the called resource is loaded to start the software.
  • the resource data of the setting page is loaded at the time of startup, for example, various resource data such as a title, a body, and a picture of the setting page are loaded, and the setting page is displayed after the page of the setting page is generated.
  • the resource data of the software corresponding setting page may be acquired, and then the resource data is loaded and displayed, so that only the resources of the setting page are loaded during the startup process. It can effectively reduce startup time and improve startup efficiency.
  • the inventor of the present application has carefully studied and found that the software displays the setting page first, and then according to the user's needs, based on the user triggering to enter other pages, so the software can be divided according to the page to achieve the software startup. Configuration to improve the efficiency of software startup.
  • FIG. 3 a flow chart of steps of an embodiment of a startup configuration method of the present application is shown. Specifically, the method may include the following steps:
  • Step 302 The resource data of the software is divided into at least two resource data according to the page, and one of the resource data corresponds to the setting page.
  • step 304 the resource data is separately stored.
  • the software resource data may be divided according to a page, and at least two resource data are determined, including resource data of the setting page, and resource data of at least one non-setting page, and resources for the non-setting page.
  • Data, each page may correspond to one resource data, or may be divided according to the relationship of each page, for example, according to the tree structure of the corresponding page of the software, resource data of different pages may be divided, and different resource data may be recorded in corresponding data.
  • the file table is easy to read or can be stored in a folder.
  • the software includes an operating system and/or an application, and the application includes the operating system installed in the operating system, and can be installed in a cloud server and can be obtained by various methods such as a shortcut, a webpage connection, and the like.
  • Each of the resource data has the description information such as the name and the identifier. Therefore, when extracting the resource data of each page to form the resource data, the resource data can be searched by manual extraction or machine scanning based on the name, the identifier, and the like. Save the name and ID of the resource data to the corresponding file in the form of data map or set.
  • the resources of the operating system or the application may be divided according to the page, and at least two resource data are obtained and stored separately.
  • the resources are stored according to the division of the page, that is, the different page resources are stored in different folders for easy reading, and of course, the type storage of the resource itself may be installed, which is not limited in the embodiment of the present application.
  • each page resource list may correspond to a page resource file, where the name, identifier, storage address, and the like of each resource are stored, so that the corresponding resource is conveniently queried. Therefore, by dividing the resource data into different resource data according to the page and storing, the resource data of the setting page can be loaded at startup to improve the startup efficiency.
  • FIG. 4 a flow chart of steps of an embodiment of a startup configuration method of the present application is shown, which may specifically include the following steps:
  • Step 402 Receive a software startup instruction, and acquire resource data of the software corresponding setting page.
  • Step 404 Load the resource data to display a corresponding setting page.
  • the pages in the software except the setting page are non-setting pages.
  • the resources of the setting page in the software and the resources of the non-setting page are loaded in batches, and the resource data of the setting page can be loaded at startup. After the software is started, the resource data corresponding to the non-setting page is loaded.
  • the resource data includes: element data and attribute data.
  • the element data is element corresponding data required for page generation and display, and the element data includes at least one of the following: text information, picture information, video information, audio information, link information, buttons, icons.
  • the text information is the text related information displayed on the page, such as the text, the title, etc.;
  • the image information is the image data such as the image and logo displayed on the page;
  • the video information is the video data, the Flash animation, the game and other element data played on the page;
  • the audio information is The audio data played on the page;
  • the link information is the link address data corresponding to each element in the page, such as text, audio and video, and the corresponding link of the picture;
  • the button is the element data such as the control in the page.
  • the element data may also include elements that are no longer displayed in the page, such as code.
  • the attribute data is the attribute information of the page and can be used to configure the page.
  • the step of loading the setting page corresponding to the resource data includes:
  • S1 Obtain element data and attribute data of the setting page from the resource data corresponding to the setting page.
  • the element data and the attribute data may be obtained from the resource data; and the attribute data is used to process the element data, for example, the location, size, and the like of the element data in the page, This generates a page for setting the page.
  • the using the attribute data and the element data to generate a corresponding page including:
  • S21 Determine the position of each element data in the page by using the layout information, and determine the size of the element data according to the size information.
  • Layout information and size information can be obtained from the attribute data, the layout information is used to determine the position of the page element in the page, and the size information is used to determine the size of the page element in the page, so that each page element can be determined according to the layout information. Its location in the page, and according to the size information to determine its size displayed in the page, then adjust the page elements according to the size, render the resized page elements to the corresponding position, generate the page corresponding to the set page.
  • the size and position of each element can be separately determined, and then the element is rendered to the corresponding position according to the size. You can also follow the display and rendering methods of the page, such as from top to bottom, to get the required elements and render them, so as to complete the rendering of the set page. Other pages associated with the set page can be rendered without rendering, that is, rendering. Once the setup page is available, the setup page can be displayed to complete the launch of the software.
  • the method further includes: S23, setting a color of the text information according to the color information; and/or setting a background color of the page according to the color information.
  • the attribute data further includes color information, and the color of the text information in the page, such as the color of the text such as the title and the body text, may be determined according to the color information. According to the color information, the background color of the page, the color scheme of the page, and the like can also be set, thereby providing a more flexible configuration of the page.
  • Step 406 Obtain resource data corresponding to the non-set page of the software.
  • Step 408 Load resource data corresponding to the non-set page of the software.
  • the pages in the software except the setting page are all non-setting pages.
  • the resource data corresponding to the non-setting page of the software may be loaded one or more times, that is, corresponding to the display. After setting the page, the corresponding resource data of each page of the non-setting page can be loaded, thereby completing the loading of each page of the software; or the resource data of the page can be loaded when the page needs to be displayed or called. , so that the page is loaded multiple times.
  • the loading the resource data corresponding to the non-setting page by the software includes: loading the software data corresponding to the non-setting page after determining that the software is in an idle state.
  • the running state of the software may be detected in real time, the running state includes a busy state and an idle state, and the busy state is a state in which the software is frequently performing a response, for example, the software is acquiring information and feedback in response to the user operation,
  • the busy state can occupy resources whose software exceeds the threshold; while the idle state has less or no response from the software, the software resources are less occupied. Thereby, the resource data of the non-set page can be loaded when idle.
  • the resource data of the non-set page can be loaded during this time.
  • the software is an in-vehicle operating system. After the user starts the in-vehicle operating system, the user confirms that the line has not selected navigation and other functions. At this time, the in-vehicle operating system is in an idle state, and can load resource data of a non-set page, such as loading a navigation page.
  • Loading the resource data corresponding to the non-set page of the software includes: loading the resource data of the specified non-set page after receiving the indication information of entering the specified non-set page. That is, after the corresponding setting page is displayed, the user can select to display the specified non-setting page, such as the navigation page of the in-vehicle system, a certain function page of the application, etc., at this time, the indication information can be received, and the indication information is used to indicate After the specified non-setting page is entered, the specified page is determined according to the indication information, and the resource data of the specified non-setting page is obtained, and then the resource data is loaded.
  • the specified non-setting page such as the navigation page of the in-vehicle system, a certain function page of the application, etc.
  • the loading of the page resource of the non-setting page corresponding page may be implemented by: obtaining element data and attribute data of the non-setting page from the non-setting page corresponding resource data; using the attribute data and the element data , generate a page corresponding to the non-setting page. That is, when the page of the non-set page is loaded, the element data and the attribute data may be obtained from the resource data; and the attribute data is used to process the element data, for example, the location, size, and the like of the element data in the page. , thereby generating a page that is not a set page.
  • the generating, by using the attribute data and the element data, the page corresponding to the non-setting page includes: determining, by using the layout information, a location of each element data in the page, and determining the element data according to the size information.
  • the size of the element data is set according to the position and size, and a page corresponding to the non-set page is generated.
  • Layout information and size information can be obtained from the attribute data, the layout information is used to determine the position of the page element in the page, and the size information is used to determine the size of the page element in the page, so that each page element can be determined according to the layout information.
  • the page elements For example, for the data of the title, picture, text, button, icon, etc. included in the non-setting page, the size and position of each element can be determined separately, and then the element is rendered to the corresponding position according to the size. You can also get the desired elements and render them according to the presentation and rendering of the page, such as from top to bottom, to complete the rendering of the non-set pages and display them when needed.
  • the method further includes: setting a color of the text information according to the color information; and/or setting a background color of the page according to the color information.
  • the attribute data further includes color information, and the color of the text information in the page, such as the color of the text such as the title and the body text, may be determined according to the color information. According to the color information, the background color of the page, the color scheme of the page, and the like can also be set, thereby providing a more flexible configuration of the page.
  • information about all the resources that may be used in the setting page may be put into one folder, and other resources are placed in another folder, where the resource is
  • the data may include information such as the name, logo, path, and the like of the resource. Therefore, an appropriate resource of the same name can be selected from each path when the resource is loaded.
  • the foregoing resource may be stored in a tree structure when the software is started. When the software is started, the resource data required for setting the page may be acquired, and then the logical logic of the page of the setting page is loaded to load the corresponding resource data, and then the setting page is completed. The startup of the software. After that, the software is started.
  • the software After the software may be idle, you can silently load other startup resources that the software depends on in the background, such as non-setting page pages and additional resources in the background. Other startup resources are not set.
  • the page resource of the page After the setting page is started, a tree structure software tree can be formed. When the page resource of the non-setting page is loaded, the leaf node of the tree can be hanged on the software tree, and the various resources are continuously improved during the loading process.
  • the software tree can also determine the relationship of each resource in the software according to the software tree.
  • the operating system may include an in-vehicle operating system, a television operating system, a computer operating system, a mobile terminal operating system, and the like.
  • the embodiment of the present application can be applied to a scenario where the operating system is cold and hot-started, and only the operating system setting page, such as the desktop resource, is loaded at the startup, and the loaded desktop can be displayed to implement the startup of the operating system, and then The resource data of the non-set page is loaded when the operating system is idle or the device resource is occupied less, so that the operating system startup speed is improved without affecting the normal use of the system.
  • the embodiment of the present application can also be applied to an executable application in a system, and the application usually consists of multiple pages, and each page is relatively independent.
  • the application has more initialization operations at startup because the different pages of the application can be loaded separately based on the characteristics of the different pages of the application. Therefore, the resources of the application may also be collected in advance, and then the resources are divided according to the page, and the resource data of the set page and the resource data of the non-set page are obtained, wherein the resource data of each page may be put into a separate file or In the module.
  • Get the resource data of the setting page at startup and load it then display the setting page to complete the startup of the application, and for the non-setting page, after the startup is idle or after receiving the execution information, Get the resource data of the corresponding page and load it, which improves the startup speed of the application.
  • the embodiment further provides an activation device, which is applied to a terminal device, and the terminal device may include a mobile terminal such as a mobile phone or a tablet computer, a PC computer, a vehicle terminal, and an Internet of Things terminal.
  • a mobile terminal such as a mobile phone or a tablet computer, a PC computer, a vehicle terminal, and an Internet of Things terminal.
  • FIG. 5 a structural block diagram of an embodiment of a booting apparatus of the present application is shown, which may specifically include the following modules:
  • the receiving module 502 receives the software startup instruction.
  • the obtaining module 504 is configured to obtain resource data of the software corresponding setting page, where the software includes an operating system and/or an application.
  • the loading module 506 is configured to load the resource data.
  • the display module 508 is configured to display a corresponding setting page.
  • the loading module 506 is configured to load resource data corresponding to the non-setting page of the software after displaying the corresponding setting page.
  • the setting page loading module and the non-setting page loading module may be collectively referred to as a loading module.
  • the loading module is configured to load resource data corresponding to the non-set page of the software after determining that the software is in an idle state.
  • the loading module is configured to load the resource data of the specified non-setting page after receiving the indication information of entering the specified non-setting page.
  • the loading module is configured to load resource data corresponding to the non-set page by the software by one or more times.
  • the resource data includes: element data and attribute data; the attribute data includes layout information, size information, and color information; the element data includes at least one of the following: text information, picture information, video information, audio information, link information , buttons, icons.
  • the loading module is configured to obtain element data and attribute data from the resource data of the setting page, and generate the page corresponding to the setting page by using the attribute data and the element data.
  • the loading module is configured to determine a position of each element data in a page by using the layout information, and determine a size of the element data according to the size information; and set the element data according to the position and size, and generate a setting The page corresponding to the page.
  • the loading module is further configured to set a color of the text information in the setting page according to the color information; and/or set a background color of the corresponding page of the setting page according to the color information.
  • the loading module is configured to obtain element data and attribute data from the resource data of the non-set page; and use the attribute data and the element data to generate a page corresponding to the non-set page.
  • the loading module is configured to determine a position of each element data in a page by using the layout information, and determine a size of the element data according to the size information; and set the element data according to the position and size to generate a non- Set the page corresponding to the page.
  • the loading module is further configured to set a color of the text information in the non-setting page according to the color information; and/or set a background color of the non-setting page corresponding page according to the color information.
  • the embodiment further provides a startup configuration device, which is applied to a computing device, and the computing device can be a server device, such as a server and a computer device used by a server personnel.
  • a server device such as a server and a computer device used by a server personnel.
  • FIG. 6 a structural block diagram of an embodiment of a boot configuration apparatus of the present application is shown, which may specifically include the following modules:
  • the dividing module 602 is configured to divide the resource data of the software into at least two resource data according to the page, where one resource data belongs to a setting page, and the software includes an operating system and/or an application.
  • the storage module 604 is configured to separately store the resource data.
  • FIG. 7 a structural block diagram of another embodiment of an activation configuration apparatus of the present application is shown, which may specifically include the following modules:
  • the dividing module 602 includes: a setting page extracting sub-module 6022 and a non-setting page extracting sub-module 6024.
  • the setting page extraction sub-module 6022 is configured to extract resource data of the software corresponding setting page, and constitute resource data of the setting page.
  • the non-set page extraction sub-module 6024 is configured to extract resource data corresponding to the non-set page of the software to form at least one resource data.
  • the storage module is further configured to record name and path information of each resource data.
  • the resource data includes: element data and attribute data, the element data including at least one of: text information, picture information, video information, audio information, link information; the attribute data includes layout information, size information, and color information. .
  • information about all the resources that may be used in the setting page may be put into one folder, and other resources are placed in another folder, where the resource is
  • the data may include information such as the name, logo, path, and the like of the resource. Therefore, an appropriate resource of the same name can be selected from each path when the resource is loaded.
  • the above resource storage can be stored in a tree row structure.
  • the software After the software may be idle, you can silently load other startup resources that the software depends on in the background, such as non-setting page pages and additional resources in the background. Other startup resources are not set.
  • the page resource of the page After the setting page is started, a tree structure software tree can be formed. When the page resource of the non-setting page is loaded, the leaf node of the tree can be hung on the software tree, and various resources are continuously improved during the loading process.
  • the software tree can also determine the relationship of each resource in the software according to the software tree.
  • the operating system may include an in-vehicle operating system, a television operating system, a computer operating system, a mobile terminal operating system, and the like.
  • the embodiment of the present application can be applied to a scenario where the operating system is cold and hot-started, and only the operating system setting page, such as the desktop resource, is loaded at the startup, and the loaded desktop can be displayed to implement the startup of the operating system, and then The resource data of the non-set page is loaded when the operating system is idle or the device resource is occupied less, so that the operating system startup speed is improved without affecting the normal use of the system.
  • the embodiment of the present application can also be applied to an executable application in a system, and the application usually consists of multiple pages, and each page is relatively independent.
  • the application has more initialization operations at startup because the different pages of the application can be loaded separately based on the characteristics of the different pages of the application. Therefore, the resources of the application may also be collected in advance, and then the resources are divided according to the page, and the resource data of the set page and the resource data of the non-set page are obtained, wherein the resource data of each page may be put into a separate file or In the module.
  • Get the resource data of the setting page at startup and load it then display the setting page to complete the startup of the application, and for the non-setting page, after the startup is idle or after receiving the execution information, Get the resource data of the corresponding page and load it, which improves the startup speed of the application.
  • the embodiment of the present application provides one or more computer readable media having stored thereon instructions that, when executed by one or more processors, cause the terminal device to perform the booting method described in the embodiments of the present application.
  • the embodiment of the present application provides one or more computer readable media having stored thereon instructions that, when executed by one or more processors, cause the server to perform the boot configuration method described in the embodiments of the present application.
  • FIG. 8 is a schematic structural diagram of a hardware of a device according to an embodiment of the present disclosure, where the device may include a terminal device and a computing device.
  • the device can include an input device 80, a processor 81, an output device 82, a memory 83, and at least one communication bus 84.
  • Communication bus 84 is used to implement a communication connection between the components.
  • Memory 83 may include high speed RAM memory, and may also include non-volatile memory NVM, such as at least one disk memory, in which various programs may be stored for performing various processing functions and implementing the method steps of the present embodiments.
  • the processor 81 may be, for example, a central processing unit (CPU), an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), and a programmable logic.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • DSP digital signal processor
  • DSPD digital signal processing device
  • programmable logic A device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component is implemented that is coupled to the input device 80 and output device 82 described above by a wired or wireless connection.
  • PLD field programmable gate array
  • controller microcontroller, microprocessor or other electronic component is implemented that is coupled to the input device 80 and output device 82 described above by a wired or wireless connection.
  • the input device 80 may include multiple input devices, for example, at least one of a user-oriented user interface, a device-oriented device interface, a software programmable interface, a camera, and a sensor.
  • the device-oriented device interface may be a wired interface for data transmission between the device and the device, or may be a hardware insertion interface (for example, a USB interface, a serial port, etc.) for data transmission between the device and the device.
  • the user-oriented user interface may be, for example, a user-oriented control button, a voice input device for receiving voice input, and a touch-sensing device for receiving a user's touch input (eg, a touch screen with touch sensing function, touch
  • the programmable interface of the software may be, for example, an input for the user to edit or modify the program, such as an input pin interface or an input interface of the chip; optionally, the transceiver may have Radio frequency transceiver chip, baseband processing chip, and transceiver antenna for communication functions.
  • An audio input device such as a microphone can receive voice data.
  • Output device 82 may include an output device such as a display, an audio, or the like.
  • the processor of the device includes functions for executing the modules of the data processing device in each device.
  • the specific functions and technical effects may be referred to the foregoing embodiments, and details are not described herein again.
  • FIG. 9 is a schematic structural diagram of hardware of a device according to another embodiment of the present disclosure.
  • Figure 9 is a specific embodiment of the implementation of Figure 8.
  • the apparatus of this embodiment includes a processor 91 and a memory 92.
  • the processor 91 executes the computer program code stored in the memory 92 to implement the startup and startup configuration methods of FIGS. 1 to 4 in the above embodiment.
  • Memory 92 is configured to store various types of data to support operation at the device. Examples of such data include instructions for any application or method operating on the device, such as messages, pictures, videos, and the like.
  • the memory 92 may include a random access memory (RAM), and may also include a non-volatile memory such as at least one disk storage.
  • processor 91 is disposed in processing component 90.
  • the device may also include a communication component 93, a power component 94, a multimedia component 95, an audio component 96, an input/output interface 97, and/or a sensor component 98.
  • the components and the like included in the device are set according to actual requirements, which is not limited in this embodiment.
  • Processing component 90 typically controls the overall operation of the device.
  • Processing component 90 may include one or more processors 91 to execute instructions to perform all or part of the steps of the above-described methods of Figures 1-4.
  • processing component 90 can include one or more modules to facilitate interaction between component 90 and other components.
  • processing component 90 can include a multimedia module to facilitate interaction between multimedia component 95 and processing component 90.
  • Power component 94 provides power to various components of the device.
  • Power component 94 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device.
  • the multimedia component 95 includes a display screen between the device and the user that provides an output interface.
  • the display screen can include a liquid crystal display (LCD) and a touch panel (TP). If the display includes a touch panel, the display can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the audio component 96 is configured to output and/or input an audio signal.
  • audio component 96 includes a microphone (MIC) that is configured to receive an external audio signal when the device is in an operational mode, such as a voice recognition mode.
  • the received audio signal may be further stored in memory 92 or transmitted via communication component 93.
  • audio component 96 also includes a speaker for outputting an audio signal.
  • the input/output interface 97 provides an interface between the processing component 90 and the peripheral interface module, which may be a click wheel, a button, or the like. These buttons may include, but are not limited to, a volume button, a start button, and a lock button.
  • Sensor assembly 98 includes one or more sensors for providing a status assessment of various aspects of the device.
  • sensor component 98 can detect the on/off state of the device, the relative positioning of the components, and the presence or absence of user contact with the device.
  • Sensor assembly 98 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact, including detecting the distance between the user and the device.
  • the sensor assembly 98 can also include a camera or the like.
  • Communication component 93 is configured to facilitate wired or wireless communication between the device and other devices.
  • the device can access a wireless network based on communication standards such as WiFi, 2G or 3G, or a combination thereof.
  • the device may include a SIM card slot for inserting the SIM card so that the device can log into the GPRS network to establish communication with the server via the Internet.
  • the communication component 93, the audio component 96, and the input/output interface 97 and the sensor component 98 involved in the embodiment of FIG. 9 can be implemented as an input device in the embodiment of FIG.
  • a terminal device in this embodiment comprising: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, The terminal device performs the startup method as described in one or more of the embodiments of the present application.
  • a server in the embodiment comprising: one or more processors; and one or more machine readable medium having stored thereon instructions, when executed by the one or more processors, The server performs the boot configuration method as described in one or more of the embodiments of the present application.
  • the embodiment of the present application further provides an operating system.
  • the operating system of the terminal device includes: a loading unit 1002 and a display unit 1004.
  • the loading unit 1002 receives a software startup instruction, acquires resource data of the setting page, and loads the resource data.
  • the display unit 1004 displays a corresponding setting page.
  • the resource data of the setting page may be acquired by the loading unit 1002; the resource data is loaded; the corresponding setting page is displayed by the display unit 1004; and the corresponding setting is displayed.
  • the loading unit 1004 can also load resource data of the non-set page.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
  • Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the instruction device implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.

Abstract

Provided are a startup and configuration method, apparatus and device, a medium, and an operating system, used for improving the startup efficiency of software. The startup method comprises: receiving a software startup instruction; acquiring resource data of a setup page corresponding to the software, wherein the software comprises an operating system and/or an application program; and loading the resource data to display the corresponding setup page. Therefore, only loading the resources of a setup page during a startup process can effectively reduce the startup time and improve the startup efficiency.

Description

启动、配置方法,装置,设备,介质和操作系统Startup, configuration methods, devices, devices, media and operating systems
本申请要求2017年07月12日递交的申请号为201710566141.3、发明名称为“启动、配置方法,装置,设备,介质和操作系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201710566141.3, entitled "Startup, Configuration Method, Apparatus, Apparatus, Media, and Operating System", filed on July 12, 2017, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种启动方法和装置、一种启动配置方法和装置、一种终端设备、一种服务器、一种可读介质和一种操作系统。The present application relates to the field of computer technology, and in particular, to a startup method and apparatus, a startup configuration method and apparatus, a terminal device, a server, a readable medium, and an operating system.
背景技术Background technique
软件是一系列按照特定顺序组织的计算机数据和指令的集合,用户使用计算机等终端设备离不开软件。Software is a collection of computer data and instructions organized in a specific order, and users can't do without software using terminal devices such as computers.
用户使用软件要先启动该软件,但是一个软件启动时往往需要加载各种资源,随着资源的越来越多,应用启动的时候效率也受到了一定的影响。Users need to start the software before using the software, but a software often needs to load various resources when starting up. As the resources are more and more, the efficiency of the application is also affected.
因此,目前需要本领域技术人员迫切解决的一个技术问题就是:提高软件的启动效率。Therefore, a technical problem that needs to be solved urgently by those skilled in the art is to improve the startup efficiency of the software.
发明内容Summary of the invention
本申请实施例所要解决的技术问题是提供一种启动方法,以提高软件的启动效率。The technical problem to be solved by the embodiments of the present application is to provide a startup method to improve the startup efficiency of the software.
相应的,本申请实施例还提供了一种启动装置、一种启动配置方法和装置、一种终端设备、一种计算设备、一种计算机可读介质和一种操作系统,用以保证上述方法的实现及应用。Correspondingly, the embodiment of the present application further provides an activation device, a startup configuration method and device, a terminal device, a computing device, a computer readable medium and an operating system for ensuring the foregoing method. Implementation and application.
为了解决上述问题,本申请实施例公开了一种启动方法,所述的方法包括:接收软件启动指令;获取所述软件对应设定页面的资源数据,其中,所述软件包括操作系统和/或应用程序;加载所述资源数据,显示对应的设定页面。In order to solve the above problem, the embodiment of the present application discloses a startup method, where the method includes: receiving a software startup instruction; acquiring resource data of a corresponding setting page of the software, where the software includes an operating system and/or An application; loading the resource data to display a corresponding setting page.
本申请实施例还公开了一种启动配置方法,包括:按照页面将软件的资源数据划分为至少两个资源数据,其中一个资源数据对应设定页面,所述软件包括操作系统和/或应用程序;对所述资源数据分别进行存储。The embodiment of the present application further discloses a startup configuration method, including: dividing resource data of software into at least two resource data according to a page, wherein one resource data corresponds to a setting page, and the software includes an operating system and/or an application. The resource data is separately stored.
本申请实施例还公开了一种启动装置,所述的装置包括:接收模块,用于接收软件启动指令;获取模块,用于获取所述软件对应设定页面的资源数据,其中,所述软件包 括操作系统和/或应用程序;加载模块,用于加载所述资源数据;显示模块,用于显示对应的设定页面。The embodiment of the present application further discloses a booting device, where the device includes: a receiving module, configured to receive a software startup instruction; and an acquiring module, configured to acquire resource data corresponding to the software setting page, where the software The operating system and/or the application program are included; the loading module is configured to load the resource data; and the display module is configured to display a corresponding setting page.
本申请实施例还公开了一种启动配置装置,包括:划分模块,用于按照页面将软件的资源数据划分为至少两个资源数据,其中一个资源数据对应设定页面,所述软件包括操作系统和/或应用程序;存储模块,用于对所述资源数据分别进行存储。The embodiment of the present application further discloses a startup configuration apparatus, including: a division module, configured to divide resource data of the software into at least two resource data according to a page, where one resource data corresponds to a setting page, and the software includes an operating system. And/or an application; a storage module, configured to separately store the resource data.
本申请实施例还公开了一种终端设备,包括:一个或多个处理器;和其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述终端设备执行如本申请实施例中一个或多个所述的方法。The embodiment of the present application further discloses a terminal device, including: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, The terminal device is caused to perform the method as described in one or more of the embodiments of the present application.
本申请实施例还公开了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得终端设备执行如本申请实施例中一个或多个所述的方法。The embodiment of the present application further discloses one or more machine readable mediums having stored thereon instructions that, when executed by one or more processors, cause the terminal device to perform one or more of the embodiments as described in the embodiments of the present application. method.
本申请实施例还公开了一种服务器,包括:一个或多个处理器;和其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述服务器执行如本申请实施例中一个或多个所述的方法。The embodiment of the present application also discloses a server, including: one or more processors; and one or more machine readable mediums on which instructions are stored, when executed by the one or more processors, The server performs the method as described in one or more of the embodiments of the present application.
本申请实施例还公开了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得服务器执行如本申请实施例中一个或多个所述的方法。The embodiment of the present application also discloses one or more machine readable mediums having stored thereon instructions that, when executed by one or more processors, cause the server to perform the method as described in one or more of the embodiments of the present application. .
本申请还实施例公开了一种操作系统,包括:加载单元,接收软件启动指令;获取设定页面的资源数据;加载所述资源数据;显示单元,显示对应的设定页面。The embodiment of the present application further discloses an operating system, including: a loading unit, receiving a software startup instruction; acquiring resource data of a setting page; loading the resource data; and displaying a corresponding setting page.
与现有技术相比,本申请实施例包括以下优点:Compared with the prior art, the embodiments of the present application include the following advantages:
在本申请实施例中,对于操作系统、应用程序等软件,在接收软件启动指令后,可获取软件对应设定页面的资源数据,然后加载该资源数据并显示,从而在启动过程中仅加载设定页面的资源能够有效的减少启动时间,提高启动效率。In the embodiment of the present application, for the operating system, the application program, and the like, after receiving the software startup instruction, the resource data corresponding to the software setting page may be acquired, and then the resource data is loaded and displayed, so that only the device is loaded during the startup process. The resources of the page can effectively reduce the startup time and improve the startup efficiency.
附图说明DRAWINGS
图1是本申请的一种启动处理示意图;1 is a schematic diagram of a startup process of the present application;
图2是本申请一种启动方法实施例的步骤流程图;2 is a flow chart showing the steps of an embodiment of a startup method of the present application;
图3是本申请的一种启动配置装置实施例的结构框图;3 is a structural block diagram of an embodiment of a boot configuration apparatus of the present application;
图4是本申请的另一种启动方法实施例的步骤流程图;4 is a flow chart showing the steps of another embodiment of the startup method of the present application;
图5是本申请的一种启动装置实施例的步骤流程图;Figure 5 is a flow chart showing the steps of an embodiment of the starting device of the present application;
图6是本申请的一种启动配置装置实施例的步骤流程图;6 is a flow chart showing the steps of an embodiment of a startup configuration apparatus of the present application;
图7是本申请的另一种启动配置装置实施例的步骤流程图;7 is a flow chart showing the steps of another embodiment of the startup configuration apparatus of the present application;
图8本申请一实施例提供的设备的硬件结构示意图;FIG. 8 is a schematic structural diagram of hardware of a device according to an embodiment of the present application;
图9是本申请另一实施例提供的设备的硬件结构示意图;FIG. 9 is a schematic structural diagram of hardware of a device according to another embodiment of the present disclosure;
图10是本申请一实施例提供的操作系统的示意图。FIG. 10 is a schematic diagram of an operating system according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。The above described objects, features and advantages of the present application will become more apparent and understood.
本申请实施例中,软件包括操作系统和/或应用程序,终端设备可采用该操作系统运行,应用程序可安装在操作系统的本地应用程序,也可以为网络应用程序,在终端需要运行时从网络获取资源运行该网络应用程序。In the embodiment of the present application, the software includes an operating system and/or an application program, and the terminal device may be run by the operating system, and the application program may be installed in a local application of the operating system or a network application, and when the terminal needs to run, The network gets the resources to run the web application.
参照图1,示出了本申请实施例的软件启动示意图。Referring to FIG. 1, a software startup diagram of an embodiment of the present application is shown.
为了提高软件的启动效率和速度,本实施例可将软件按照页面划分出至少两个资源数据,其中包括设定页面的资源数据,和,至少一个非设定页面的资源数据。从而在软件启动时,获取设定页面的资源数据,再加载该设定页面的资源数据,显示设定页面的页面,从而快速展示软件页面。而其他页面可在空闲时或用户需要时再加载。本实施例将软件启动时显示的设定页面和不显示的非设定页面分离,使得在启动时加载显示的设定页面资源,减少所需加载的资源以减少启动时间,提高启动效率。本申请实施例中,资源数据包括页面的各种资源,如页面中展示的文本、图片、视频等元素数据,以及个资源的布局、尺寸等属性数据,还可支持展示该页面的后台资源数据,如代码等数据。In order to improve the startup efficiency and speed of the software, the embodiment may divide the software into at least two resource data according to the page, including resource data of the setting page, and resource data of at least one non-setting page. Therefore, when the software is started, the resource data of the setting page is acquired, the resource data of the setting page is loaded, and the page of the setting page is displayed, so that the software page is quickly displayed. Other pages can be loaded when they are idle or when they need it. In this embodiment, the setting page displayed when the software is started is separated from the non-setting page that is not displayed, so that the displayed setting page resource is loaded at the startup, the required loading resources are reduced to reduce the startup time, and the startup efficiency is improved. In the embodiment of the present application, the resource data includes various resources of the page, such as text, image, video, and other element data displayed on the page, and attribute data such as layout and size of the resource, and also supports background resource data of the page. , such as code and other data.
本申请实施例中,设定页面为依据软件启动执行显示的页面,可依据需求设定,例如软件的首页、软件的某个推荐页面,软件与其他软件关联的页面等,即该设定页面可指在软件启动后非用户操作触发显示的页面。该设定页面可为一个或多个,如在软件启动后显示一推荐页面,并在较短时间内自动消失进入该软件的首页,则推荐页面和首页都确定为设定页面。则在一个示例中,一个应用程序启动时会显示一个广告页面(或功能介绍页面等)然后再显示主页面,则这两个页面都作为设定页面。In the embodiment of the present application, the setting page is a page for displaying and executing according to the software, and may be set according to requirements, such as a homepage of the software, a recommendation page of the software, a page associated with the software, etc., that is, the setting page. It can refer to the page that is triggered by the non-user operation after the software is started. The setting page may be one or more. For example, after displaying a recommended page after the software is started, and automatically disappearing into the first page of the software in a short time, the recommended page and the first page are determined as setting pages. In one example, when an application launches, an advertisement page (or a function introduction page, etc.) is displayed and then the main page is displayed, and both pages serve as setting pages.
参照图2,示出了本申请的一种启动方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2, a flow chart of steps of an embodiment of a startup method of the present application is shown, which may specifically include the following steps:
步骤202,接收软件启动指令。Step 202: Receive a software startup instruction.
步骤204,获取所述软件对应设定页面的资源数据,其中,所述软件包括操作系统 和/或应用程序。Step 204: Obtain resource data of the software corresponding setting page, where the software includes an operating system and/or an application.
步骤206,加载所述资源数据,显示对应的设定页面。Step 206: Load the resource data to display a corresponding setting page.
本实施例中,在操作系统、应用程序等软件启动时,可获取该软件对应设定页面的资源数据,该设定页面即启动后非用户操作触发展示的页面。其中,对于资源数据可调用该软件对应在本地安装的资源,也可以调用该软件在网络侧的资源如软件安装在云端服务器中,在终端本地的注册表等进行注册安装,则在启动该软件时可以基于在本地注册的信息调用云端服务器的资源,然后加载调用的资源进行软件的启动。其中,启动时对该设定页面的资源数据进行加载,例如加载设定页面的标题、正文、图片等各种资源数据,生成设定页面的页面后显示该设定页面。In this embodiment, when the software such as the operating system and the application program is started, the resource data of the corresponding setting page of the software may be acquired, and the setting page is the page that is triggered by the non-user operation after the startup. Wherein, for the resource data, the software may be invoked corresponding to the locally installed resource, and the software may be invoked on the network side, such as software installed in the cloud server, and the local registry of the terminal is registered and installed, and the software is started. The resource of the cloud server can be called based on the information registered locally, and then the called resource is loaded to start the software. The resource data of the setting page is loaded at the time of startup, for example, various resource data such as a title, a body, and a picture of the setting page are loaded, and the setting page is displayed after the page of the setting page is generated.
综上,对于操作系统、应用程序等软件,在接收软件启动指令后,可获取软件对应设定页面的资源数据,然后加载该资源数据并显示,从而在启动过程中仅加载设定页面的资源能够有效的减少启动时间,提高启动效率。In summary, for the operating system, the application program and the like, after receiving the software startup instruction, the resource data of the software corresponding setting page may be acquired, and then the resource data is loaded and displayed, so that only the resources of the setting page are loaded during the startup process. It can effectively reduce startup time and improve startup efficiency.
随着云计算技术的不断发展,软件程序可存在云端,在需要使用的时通过网络请求加载到本地,然后在终端中通过解析运行的模式正在兴起。为了支持代码在不同平台不同环境下的运行需求。通常在软件中会包括很多软件运行依赖的资源,在软件运行时会依据当前的软件运行环境,选择最匹配的资源。而这种资源的选择在设备不断丰富,代码运行消耗的性能越来越多的情况下,软件的启动效率会受到较大影响。With the continuous development of cloud computing technology, software programs can exist in the cloud, and when they need to be used, they are loaded locally through network requests, and then the mode of running through parsing in the terminal is emerging. In order to support the running requirements of the code in different environments of different platforms. Usually, the software will include a lot of resources that the software runs depend on. When the software runs, it will select the most matching resources according to the current software running environment. The selection of such resources will be greatly affected by the increasing efficiency of the software and the increasing performance of the code running.
针对上述问题,本申请的发明人经过仔细研究发现,软件启动时先显示设定页面,而后才依据用户需求,基于用户触发进入其他页面,因此可将软件按照页面划分资源,实现对于软件的启动配置,以提高软件启动的效率。In response to the above problems, the inventor of the present application has carefully studied and found that the software displays the setting page first, and then according to the user's needs, based on the user triggering to enter other pages, so the software can be divided according to the page to achieve the software startup. Configuration to improve the efficiency of software startup.
参照图3,示出了本申请的一种启动配置方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 3, a flow chart of steps of an embodiment of a startup configuration method of the present application is shown. Specifically, the method may include the following steps:
步骤302,按照页面将软件的资源数据划分为至少两个资源数据,其中一个资源数据对应设定页面。Step 302: The resource data of the software is divided into at least two resource data according to the page, and one of the resource data corresponds to the setting page.
步骤304,对所述资源数据分别进行存储。In step 304, the resource data is separately stored.
本实施例中,可将软件资源数据按照页面进行划分,确定至少两个资源数据,其中包括设定页面的资源数据,和,至少一个非设定页面的资源数据,对于非设定页面的资源数据,可每一页均对应一个资源数据,也可依据各页面的关系划分资源数据,例如依据该软件对应页面的树型结构划分不同页面的资源数据等,不同的资源数据可记录在相应的文件表中便于读取,也可存储在一个文件夹中。其中,软件包括操作系统和/或应用 程序,该应用程序包括安装在该操作系统中,也可安装在云端的服务器中且在该操作系统能够通过快捷方式、网页连接等各种方式获取。In this embodiment, the software resource data may be divided according to a page, and at least two resource data are determined, including resource data of the setting page, and resource data of at least one non-setting page, and resources for the non-setting page. Data, each page may correspond to one resource data, or may be divided according to the relationship of each page, for example, according to the tree structure of the corresponding page of the software, resource data of different pages may be divided, and different resource data may be recorded in corresponding data. The file table is easy to read or can be stored in a folder. The software includes an operating system and/or an application, and the application includes the operating system installed in the operating system, and can be installed in a cloud server and can be obtained by various methods such as a shortcut, a webpage connection, and the like.
其中,每个资源数据都具有名称、标识等描述信息,因此本申请实施例中在提取各页面的资源数据构成资源数据时,可以基于名称、标识等通过人工抽取或者机器扫描的方式查找资源数据,将资源数据的名称、标识以数据map,或者set的方式保存到对应的文件中。Each of the resource data has the description information such as the name and the identifier. Therefore, when extracting the resource data of each page to form the resource data, the resource data can be searched by manual extraction or machine scanning based on the name, the identifier, and the like. Save the name and ID of the resource data to the corresponding file in the form of data map or set.
因此在终端设备本地,可对操作系统或应用程序的资源按照页面进行划分,得到至少两个资源数据,并分别进行存储。其中,存储时将资源按照页面的划分存储,即不同页面资源存储在不同的文件夹中便于读取,当然也可安装资源本身的类型存储,本申请实施例对此不作限定。另外,每个页面资源列表可对应一个页面资源文件,在该文件中存储各资源的名称、标识、存储地址等,便于查询相应的资源。从而通过将资源数据按照页面划分成不同的资源数据并存储,能够在启动时加载设定页面的资源数据以提高启动效率。Therefore, at the local device, the resources of the operating system or the application may be divided according to the page, and at least two resource data are obtained and stored separately. In the storage, the resources are stored according to the division of the page, that is, the different page resources are stored in different folders for easy reading, and of course, the type storage of the resource itself may be installed, which is not limited in the embodiment of the present application. In addition, each page resource list may correspond to a page resource file, where the name, identifier, storage address, and the like of each resource are stored, so that the corresponding resource is conveniently queried. Therefore, by dividing the resource data into different resource data according to the page and storing, the resource data of the setting page can be loaded at startup to improve the startup efficiency.
参照图4,示出了本申请的一种启动配置方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 4, a flow chart of steps of an embodiment of a startup configuration method of the present application is shown, which may specifically include the following steps:
步骤402,接收软件启动指令,获取所述软件对应设定页面的资源数据。Step 402: Receive a software startup instruction, and acquire resource data of the software corresponding setting page.
步骤404,加载所述资源数据,显示对应的设定页面。Step 404: Load the resource data to display a corresponding setting page.
软件中除设定页面之外的页面都是非设定页面,本实施例将软件中设定页面的资源和非设定页面的资源分批加载,可在启动时加载设定页面的资源数据,在软件启动后再加载所述软件对应非设定页面的资源数据。The pages in the software except the setting page are non-setting pages. In this embodiment, the resources of the setting page in the software and the resources of the non-setting page are loaded in batches, and the resource data of the setting page can be loaded at startup. After the software is started, the resource data corresponding to the non-setting page is loaded.
本申请实施例中,所述资源数据包括:元素数据和属性数据。其中,元素数据为页面生成和展示所需的元素对应数据,所述元素数据包括以下至少一项:文本信息、图片信息、视频信息、音频信息、链接信息、按钮、图标。文本信息为页面中显示的文字相关信息如正文、标题等;图片信息为页面中显示的图片、logo等元素数据;视频信息为页面中播放的视频、Flash动画、游戏等元素数据;音频信息为页面中播放的音频数据;链接信息为页面中各元素对应的链接地址数据,如文字、音视频以及图片对应链接等;按钮为页面中的控件等元素数据等。该元素数据还可包括不再页面中显示的元素,如代码等。属性数据为该页面的属性信息,可用于配置页面。In the embodiment of the present application, the resource data includes: element data and attribute data. The element data is element corresponding data required for page generation and display, and the element data includes at least one of the following: text information, picture information, video information, audio information, link information, buttons, icons. The text information is the text related information displayed on the page, such as the text, the title, etc.; the image information is the image data such as the image and logo displayed on the page; the video information is the video data, the Flash animation, the game and other element data played on the page; the audio information is The audio data played on the page; the link information is the link address data corresponding to each element in the page, such as text, audio and video, and the corresponding link of the picture; the button is the element data such as the control in the page. The element data may also include elements that are no longer displayed in the page, such as code. The attribute data is the attribute information of the page and can be used to configure the page.
其中,加载设定页面对应资源数据的步骤包括:The step of loading the setting page corresponding to the resource data includes:
S1、从所述设定页面对应资源数据中获取设定页面的元素数据和属性数据。S1: Obtain element data and attribute data of the setting page from the resource data corresponding to the setting page.
S2、采用所述属性数据和元素数据,生成设定页面对应的页面。S2: Using the attribute data and the element data, generating a page corresponding to the setting page.
即在加载设定页面的页面时,可从所述资源数据中获取元素数据和属性数据;采用所述属性数据对元素数据,进行处理,例如配置元素数据在页面中的位置、尺寸等信息,从而生成设定页面的页面。That is, when the page of the setting page is loaded, the element data and the attribute data may be obtained from the resource data; and the attribute data is used to process the element data, for example, the location, size, and the like of the element data in the page, This generates a page for setting the page.
其中,所述采用所述属性数据和元素数据,生成对应的页面,包括:The using the attribute data and the element data to generate a corresponding page, including:
S21、采用所述布局信息确定各元素数据在页面中的位置,并依据所述尺寸信息确定所述元素数据的尺寸。S21. Determine the position of each element data in the page by using the layout information, and determine the size of the element data according to the size information.
S22、依据所述位置和尺寸设置所述元素数据,生成设定页面对应的页面。S22. Set the element data according to the location and size, and generate a page corresponding to the setting page.
可从属性数据中获取布局信息和尺寸信息,该布局信息用于确定页面元素在页面中的位置,尺寸信息用于确定页面元素在页面中的尺寸,从而针对每个页面元素可依据布局信息确定其在页面中的位置,并且依据尺寸信息确定其在页面中显示的尺寸,然后按照该尺寸调整页面元素,将尺寸调整的页面元素渲染到相应位置出,生成设定页面对应的页面。Layout information and size information can be obtained from the attribute data, the layout information is used to determine the position of the page element in the page, and the size information is used to determine the size of the page element in the page, so that each page element can be determined according to the layout information. Its location in the page, and according to the size information to determine its size displayed in the page, then adjust the page elements according to the size, render the resized page elements to the corresponding position, generate the page corresponding to the set page.
例如,针对设定页面包含的标题、图片、文本、按钮、图标等数据,可分别确定每个元素的尺寸和位置,然后将元素按照所述尺寸渲染到相应位置上。还可以按照页面的展示、渲染方式,如从上到下依次获取所需的元素并渲染,从而完成对于设定页面的渲染,对于该设定页面关联的其他页面可先不渲染,即在渲染得到设定页面后即可展示该设定页面以完成对于软件的启动。For example, for the title, picture, text, button, icon, and the like included in the setting page, the size and position of each element can be separately determined, and then the element is rendered to the corresponding position according to the size. You can also follow the display and rendering methods of the page, such as from top to bottom, to get the required elements and render them, so as to complete the rendering of the set page. Other pages associated with the set page can be rendered without rendering, that is, rendering. Once the setup page is available, the setup page can be displayed to complete the launch of the software.
所述的方法还包括:S23、依据所述颜色信息设置文本信息的颜色;和/或,依据所述颜色信息设置所述页面的背景颜色。The method further includes: S23, setting a color of the text information according to the color information; and/or setting a background color of the page according to the color information.
其中,所述属性数据还包括颜色信息,依据该颜色信息可确定页面中文本信息的颜色,例如标题、正文等文字的颜色。依据该颜色信息也可设置页面的背景颜色,以及该页面的配色方案等,从而能够提供页面更灵活的配置。The attribute data further includes color information, and the color of the text information in the page, such as the color of the text such as the title and the body text, may be determined according to the color information. According to the color information, the background color of the page, the color scheme of the page, and the like can also be set, thereby providing a more flexible configuration of the page.
步骤406,获取所述软件对应非设定页面的资源数据。Step 406: Obtain resource data corresponding to the non-set page of the software.
步骤408,加载所述软件对应非设定页面的资源数据。Step 408: Load resource data corresponding to the non-set page of the software.
软件中除设定页面之外的页面都是非设定页面,对于非设定页面对应资源数据的加载,可通过一次或多次加载所述软件对应非设定页面的资源数据,即在显示对应的设定页面后,可以对每个非设定页面的页面对应资源数据进行加载,从而完成对于该软件各页面的加载;也可以在需要展示、调用某个页面时再加载该页面的资源数据,从而分多次加载页面。The pages in the software except the setting page are all non-setting pages. For the loading of the resource data corresponding to the non-setting page, the resource data corresponding to the non-setting page of the software may be loaded one or more times, that is, corresponding to the display. After setting the page, the corresponding resource data of each page of the non-setting page can be loaded, thereby completing the loading of each page of the software; or the resource data of the page can be loaded when the page needs to be displayed or called. , so that the page is loaded multiple times.
其中,加载所述软件对应非设定页面的资源数据,包括:在判断所述软件处于空闲状态后,加载所述软件对应非设定页面的资源数据。在显示对应的设定页面后,可实时检测软件的运行状态,该运行状态包括忙碌状态和空闲状态,忙碌状态即软件正在频繁执行响应的状态,例如软件正在响应用户操作获取信息并反馈,该忙碌状态可占据软件超过门限的资源;而空闲状态时软件的响应较少或没有,软件资源较少被占用。从而可以在空闲时对非设定页面的资源数据进行加载。例如用户在启动软件后,并没有执行其他操作,则在这段时间可加载非设定页面的资源数据。又如软件为车载操作系统,用户在启动车载操作系统后正在确认线路还未选择导航等功能,此时车载操作系统处于空闲状态,可加载非设定页面的资源数据,如加载导航页。The loading the resource data corresponding to the non-setting page by the software includes: loading the software data corresponding to the non-setting page after determining that the software is in an idle state. After displaying the corresponding setting page, the running state of the software may be detected in real time, the running state includes a busy state and an idle state, and the busy state is a state in which the software is frequently performing a response, for example, the software is acquiring information and feedback in response to the user operation, The busy state can occupy resources whose software exceeds the threshold; while the idle state has less or no response from the software, the software resources are less occupied. Thereby, the resource data of the non-set page can be loaded when idle. For example, after the user starts the software and does not perform other operations, the resource data of the non-set page can be loaded during this time. Another example is that the software is an in-vehicle operating system. After the user starts the in-vehicle operating system, the user confirms that the line has not selected navigation and other functions. At this time, the in-vehicle operating system is in an idle state, and can load resource data of a non-set page, such as loading a navigation page.
加载所述软件对应非设定页面的资源数据,包括:在接收到进入指定非设定页面的指示信息后,加载所述指定非设定页面的资源数据。即在显示对应的设定页面后,用户可选择展示指定非设定页面,如车载系统的导航页、应用程序的某一功能页面等,此时可接收到指示信息,该指示信息用于指示进入指定非设定页面,依据该指示信息确定指定页后,可以获取该指定非设定页面的资源数据,然后加载该资源数据。Loading the resource data corresponding to the non-set page of the software includes: loading the resource data of the specified non-set page after receiving the indication information of entering the specified non-set page. That is, after the corresponding setting page is displayed, the user can select to display the specified non-setting page, such as the navigation page of the in-vehicle system, a certain function page of the application, etc., at this time, the indication information can be received, and the indication information is used to indicate After the specified non-setting page is entered, the specified page is determined according to the indication information, and the resource data of the specified non-setting page is obtained, and then the resource data is loaded.
对于非设定页面对应页面的页面资源的加载可以采用以下步骤实现:从所述非设定页面对应资源数据中获取该非设定页面的元素数据和属性数据;采用所述属性数据和元素数据,生成非设定页面对应的页面。即在加载非设定页面的页面时,可从所述资源数据中获取元素数据和属性数据;采用所述属性数据对元素数据,进行处理,例如配置元素数据在页面中的位置、尺寸等信息,从而生成非设定页面的页面。The loading of the page resource of the non-setting page corresponding page may be implemented by: obtaining element data and attribute data of the non-setting page from the non-setting page corresponding resource data; using the attribute data and the element data , generate a page corresponding to the non-setting page. That is, when the page of the non-set page is loaded, the element data and the attribute data may be obtained from the resource data; and the attribute data is used to process the element data, for example, the location, size, and the like of the element data in the page. , thereby generating a page that is not a set page.
其中,所述采用所述属性数据和元素数据,生成非设定页面对应的页面,包括:采用所述布局信息确定各元素数据在页面中的位置,并依据所述尺寸信息确定所述元素数据的尺寸;依据所述位置和尺寸设置所述元素数据,生成非设定页面对应的页面。可从属性数据中获取布局信息和尺寸信息,该布局信息用于确定页面元素在页面中的位置,尺寸信息用于确定页面元素在页面中的尺寸,从而针对每个页面元素可依据布局信息确定其在页面中的位置,并且依据尺寸信息确定其在页面中显示的尺寸,然后按照该尺寸调整页面元素,将尺寸调整的页面元素渲染到相应位置出,生成设定页面对应的页面。例如,针对非设定页面包含的标题、图片、文本、按钮、图标等数据,可分别确定每个元素的尺寸和位置,然后将元素按照所述尺寸渲染到相应位置上。还可以按照页面的展示、渲染方式,如从上到下依次获取所需的元素并渲染,从而完成对于非设定页面的渲染并在需要时展示。The generating, by using the attribute data and the element data, the page corresponding to the non-setting page, includes: determining, by using the layout information, a location of each element data in the page, and determining the element data according to the size information. The size of the element data is set according to the position and size, and a page corresponding to the non-set page is generated. Layout information and size information can be obtained from the attribute data, the layout information is used to determine the position of the page element in the page, and the size information is used to determine the size of the page element in the page, so that each page element can be determined according to the layout information. Its location in the page, and according to the size information to determine its size displayed in the page, then adjust the page elements according to the size, render the resized page elements to the corresponding position, generate the page corresponding to the set page. For example, for the data of the title, picture, text, button, icon, etc. included in the non-setting page, the size and position of each element can be determined separately, and then the element is rendered to the corresponding position according to the size. You can also get the desired elements and render them according to the presentation and rendering of the page, such as from top to bottom, to complete the rendering of the non-set pages and display them when needed.
所述的方法还包括:依据所述颜色信息设置文本信息的颜色;和/或,依据所述颜色信息设置所述页面的背景颜色。其中,所述属性数据还包括颜色信息,依据该颜色信息可确定页面中文本信息的颜色,例如标题、正文等文字的颜色。依据该颜色信息也可设置页面的背景颜色,以及该页面的配色方案等,从而能够提供页面更灵活的配置。The method further includes: setting a color of the text information according to the color information; and/or setting a background color of the page according to the color information. The attribute data further includes color information, and the color of the text information in the page, such as the color of the text such as the title and the body text, may be determined according to the color information. According to the color information, the background color of the page, the color scheme of the page, and the like can also be set, thereby providing a more flexible configuration of the page.
本申请实施例中,在配置启动资源过程中,可将设定页面需要的可能用到的所有资源的信息放到一个文件夹中,其他的资源放在另一个文件夹内,其中,该资源数据可包括资源的名称、标识、路径等信息。从而在加载资源时可从各路径中选择合适的同名资源。上述资源存储时可以树型结构存储,在软件启动时,可获取设定页面需要的资源数据,然后执行设定页面的页面逻辑业务逻辑加载相应的资源数据,然后显示该设定页面就完成了软件的启动。此后,软件就启动完毕了,之后软件可能处于空闲状态,则可在后台静默的加载该软件依赖的其他启动资源,如非设定页面页面以及后台的附加资源等,其他启动资源即为非设定页面的页面资源。设定页面启动后即可形成一个树型结构的软件树,在非设定页面的页面资源加载时可作为树的叶子节点挂该软件树上,则各类资源在加载过程中即不断完善该软件树,依据该软件树还可确定该软件中各资源的关系。In the embodiment of the present application, in the process of configuring the startup resource, information about all the resources that may be used in the setting page may be put into one folder, and other resources are placed in another folder, where the resource is The data may include information such as the name, logo, path, and the like of the resource. Therefore, an appropriate resource of the same name can be selected from each path when the resource is loaded. The foregoing resource may be stored in a tree structure when the software is started. When the software is started, the resource data required for setting the page may be acquired, and then the logical logic of the page of the setting page is loaded to load the corresponding resource data, and then the setting page is completed. The startup of the software. After that, the software is started. After the software may be idle, you can silently load other startup resources that the software depends on in the background, such as non-setting page pages and additional resources in the background. Other startup resources are not set. The page resource of the page. After the setting page is started, a tree structure software tree can be formed. When the page resource of the non-setting page is loaded, the leaf node of the tree can be hanged on the software tree, and the various resources are continuously improved during the loading process. The software tree can also determine the relationship of each resource in the software according to the software tree.
以操作系统为例,该操作系统可包括车载操作系统、电视操作系统、计算机操作系统、移动终端操作系统等。本申请实施例可应用于操作系统冷、热启动的场景下,在启动时仅加载操作系统的设定页面如桌面的资源,并展示加载完毕的桌面即可实现对于操作系统的启动,然后可在操作系统空闲或设备资源占用较少等情况下加载非设定页面的资源数据,从而在提高操作系统启动速度的同时不影响系统的正常使用。Taking the operating system as an example, the operating system may include an in-vehicle operating system, a television operating system, a computer operating system, a mobile terminal operating system, and the like. The embodiment of the present application can be applied to a scenario where the operating system is cold and hot-started, and only the operating system setting page, such as the desktop resource, is loaded at the startup, and the loaded desktop can be displayed to implement the startup of the operating system, and then The resource data of the non-set page is loaded when the operating system is idle or the device resource is occupied less, so that the operating system startup speed is improved without affecting the normal use of the system.
本申请实施例也可应用到系统中可运行的应用程序中,应用程序通常由多个页面组成,每个页面相对是独立的。应用在启动时有较多的初始化操作,因为可基于应用程序不同页面彼此独立的特点,将应用程序的不同页面分开加载。因此也可预先收集该应用程序的资源,然后按照页面对资源进行划分,得到设定页面的资源数据和非设定页面的资源数据,其中每个页面的资源数据可放到一个单独的文件或者模块中。在启动时获取设定页面的资源数据并加载,然后显示该设定页面即可完成对应用程序的启动,而对于非设定页面可在启动后应用程序处于空闲状态或接收到执行信息后,获取相应页面的资源数据并加载,从而提升了应用的启动速度。The embodiment of the present application can also be applied to an executable application in a system, and the application usually consists of multiple pages, and each page is relatively independent. The application has more initialization operations at startup because the different pages of the application can be loaded separately based on the characteristics of the different pages of the application. Therefore, the resources of the application may also be collected in advance, and then the resources are divided according to the page, and the resource data of the set page and the resource data of the non-set page are obtained, wherein the resource data of each page may be put into a separate file or In the module. Get the resource data of the setting page at startup and load it, then display the setting page to complete the startup of the application, and for the non-setting page, after the startup is idle or after receiving the execution information, Get the resource data of the corresponding page and load it, which improves the startup speed of the application.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人 员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the embodiments of the present application are not limited by the described action sequence, because In accordance with embodiments of the present application, certain steps may be performed in other sequences or concurrently. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
在上述实施例的基础上,本实施例还提供了一种启动装置,应用于终端设备,该终端设备可包括手机、平板电脑等移动终端,PC计算机、车辆终端以及物联网终端等。On the basis of the foregoing embodiments, the embodiment further provides an activation device, which is applied to a terminal device, and the terminal device may include a mobile terminal such as a mobile phone or a tablet computer, a PC computer, a vehicle terminal, and an Internet of Things terminal.
参照图5,示出了本申请一种启动装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 5, a structural block diagram of an embodiment of a booting apparatus of the present application is shown, which may specifically include the following modules:
接收模块502,接收软件启动指令。The receiving module 502 receives the software startup instruction.
获取模块504,用于获取所述软件对应设定页面的资源数据,其中,所述软件包括操作系统和/或应用程序。The obtaining module 504 is configured to obtain resource data of the software corresponding setting page, where the software includes an operating system and/or an application.
加载模块506,用于加载所述资源数据。The loading module 506 is configured to load the resource data.
显示模块508,用于显示对应的设定页面。The display module 508 is configured to display a corresponding setting page.
其中,所述加载模块506,用于在显示对应的设定页面之后,加载所述软件对应非设定页面的资源数据。其中,设定页面加载模块和非设定页面加载模块可并称为加载模块。The loading module 506 is configured to load resource data corresponding to the non-setting page of the software after displaying the corresponding setting page. The setting page loading module and the non-setting page loading module may be collectively referred to as a loading module.
一个可选实施例中,所述加载模块,用于在判断所述软件处于空闲状态后,加载所述软件对应非设定页面的资源数据。In an optional embodiment, the loading module is configured to load resource data corresponding to the non-set page of the software after determining that the software is in an idle state.
另一个可选实施例中,所述加载模块,用于在接收到进入指定非设定页面的指示信息后,加载所述指定非设定页面的资源数据。In another optional embodiment, the loading module is configured to load the resource data of the specified non-setting page after receiving the indication information of entering the specified non-setting page.
所述加载模块,用于所述软件对应非设定页面的资源数据通过一次或多次加载。The loading module is configured to load resource data corresponding to the non-set page by the software by one or more times.
所述资源数据包括:元素数据和属性数据;所述属性数据包括布局信息、尺寸信息和颜色信息;所述元素数据包括以下至少一项:文本信息、图片信息、视频信息、音频信息、链接信息、按钮、图标。The resource data includes: element data and attribute data; the attribute data includes layout information, size information, and color information; the element data includes at least one of the following: text information, picture information, video information, audio information, link information , buttons, icons.
其中,所述加载模块,用于从所述设定页面的资源数据中获取元素数据和属性数据;采用所述属性数据和元素数据,生成设定页面对应的页面。The loading module is configured to obtain element data and attribute data from the resource data of the setting page, and generate the page corresponding to the setting page by using the attribute data and the element data.
所述加载模块,用于采用所述布局信息确定各元素数据在页面中的位置,并依据所述尺寸信息确定所述元素数据的尺寸;依据所述位置和尺寸设置所述元素数据,生成设定页面对应的页面。The loading module is configured to determine a position of each element data in a page by using the layout information, and determine a size of the element data according to the size information; and set the element data according to the position and size, and generate a setting The page corresponding to the page.
所述加载模块,还用于依据所述颜色信息设置设定页面中文本信息的颜色;和/或依据所述颜色信息设置所述设定页面对应页面的背景颜色。The loading module is further configured to set a color of the text information in the setting page according to the color information; and/or set a background color of the corresponding page of the setting page according to the color information.
所述加载模块,用于从所述非设定页面的资源数据中获取元素数据和属性数据;采用所述属性数据和元素数据,生成非设定页面对应的页面。The loading module is configured to obtain element data and attribute data from the resource data of the non-set page; and use the attribute data and the element data to generate a page corresponding to the non-set page.
所述加载模块,用于采用所述布局信息确定各元素数据在页面中的位置,并依据所述尺寸信息确定所述元素数据的尺寸;依据所述位置和尺寸设置所述元素数据,生成非设定页面对应的页面。The loading module is configured to determine a position of each element data in a page by using the layout information, and determine a size of the element data according to the size information; and set the element data according to the position and size to generate a non- Set the page corresponding to the page.
所述加载模块,还用于依据所述颜色信息设置非设定页面中文本信息的颜色;和/或依据所述颜色信息设置所述非设定页面对应页面的背景颜色。The loading module is further configured to set a color of the text information in the non-setting page according to the color information; and/or set a background color of the non-setting page corresponding page according to the color information.
在上述实施例的基础上,本实施例还提供了一种启动配置装置,应用于计算设备,该计算端设备可为服务端设备,如服务器以及服务端人员使用的计算机设备等。On the basis of the foregoing embodiments, the embodiment further provides a startup configuration device, which is applied to a computing device, and the computing device can be a server device, such as a server and a computer device used by a server personnel.
参照图6,示出了本申请一种启动配置装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 6, a structural block diagram of an embodiment of a boot configuration apparatus of the present application is shown, which may specifically include the following modules:
划分模块602,用于按照页面将软件的资源数据划分为至少两个资源数据,其中一个资源数据属于设定页面,所述软件包括操作系统和/或应用程序。The dividing module 602 is configured to divide the resource data of the software into at least two resource data according to the page, where one resource data belongs to a setting page, and the software includes an operating system and/or an application.
存储模块604,用于对所述资源数据分别进行存储。The storage module 604 is configured to separately store the resource data.
参照图7,示出了本申请另一种启动配置装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 7, a structural block diagram of another embodiment of an activation configuration apparatus of the present application is shown, which may specifically include the following modules:
其中,所述划分模块602,包括:设定页面抽取子模块6022和非设定页面抽取子模块6024。The dividing module 602 includes: a setting page extracting sub-module 6022 and a non-setting page extracting sub-module 6024.
设定页面抽取子模块6022,用于抽取所述软件对应设定页面的资源数据,构成所述设定页面的资源数据。The setting page extraction sub-module 6022 is configured to extract resource data of the software corresponding setting page, and constitute resource data of the setting page.
非设定页面抽取子模块6024,用于抽取所述软件对应非设定页面的资源数据,构成至少一个资源数据。The non-set page extraction sub-module 6024 is configured to extract resource data corresponding to the non-set page of the software to form at least one resource data.
所述存储模块,还用于记录各资源数据的名称和路径信息。The storage module is further configured to record name and path information of each resource data.
所述资源数据包括:元素数据和属性数据,所述元素数据包括以下至少一项:文本信息、图片信息、视频信息、音频信息、链接信息;所述属性数据包括布局信息、尺寸信息和颜色信息。The resource data includes: element data and attribute data, the element data including at least one of: text information, picture information, video information, audio information, link information; the attribute data includes layout information, size information, and color information. .
本申请实施例中,在配置启动资源过程中,可将设定页面需要的可能用到的所有资源的信息放到一个文件夹中,其他的资源放在另一个文件夹内,其中,该资源数据可包括资源的名称、标识、路径等信息。从而在加载资源时可从各路径中选择合适的同名资源。上述资源存储时可以树行结构存储,在软件启动时,可获取设定页面需要的资源数据,然后执行设定页面的页面逻辑业务逻辑加载形影的资源数据,然后显示该设定页面就完成了软件的启动。此后,软件就启动完毕了,之后软件可能处于空闲状态,则可在 后台静默的加载该软件依赖的其他启动资源,如非设定页面页面以及后台的附加资源等,其他启动资源即为非设定页面的页面资源。设定页面启动后即可形成一个树型结构的软件树,在非设定页面的页面资源加载时可作为树的叶子节点挂在该软件树上,则各类资源在加载过程中即不断完善该软件树,依据该软件树还可确定该软件中各资源的关系。In the embodiment of the present application, in the process of configuring the startup resource, information about all the resources that may be used in the setting page may be put into one folder, and other resources are placed in another folder, where the resource is The data may include information such as the name, logo, path, and the like of the resource. Therefore, an appropriate resource of the same name can be selected from each path when the resource is loaded. The above resource storage can be stored in a tree row structure. When the software is started, the resource data required for setting the page can be obtained, and then the resource data of the page logical business logic of the setting page is loaded, and then the setting page is completed. The startup of the software. After that, the software is started. After the software may be idle, you can silently load other startup resources that the software depends on in the background, such as non-setting page pages and additional resources in the background. Other startup resources are not set. The page resource of the page. After the setting page is started, a tree structure software tree can be formed. When the page resource of the non-setting page is loaded, the leaf node of the tree can be hung on the software tree, and various resources are continuously improved during the loading process. The software tree can also determine the relationship of each resource in the software according to the software tree.
以操作系统为例,该操作系统可包括车载操作系统、电视操作系统、计算机操作系统、移动终端操作系统等。本申请实施例可应用于操作系统冷、热启动的场景下,在启动时仅加载操作系统的设定页面如桌面的资源,并展示加载完毕的桌面即可实现对于操作系统的启动,然后可在操作系统空闲或设备资源占用较少等情况下加载非设定页面的资源数据,从而在提高操作系统启动速度的同时不影响系统的正常使用。Taking the operating system as an example, the operating system may include an in-vehicle operating system, a television operating system, a computer operating system, a mobile terminal operating system, and the like. The embodiment of the present application can be applied to a scenario where the operating system is cold and hot-started, and only the operating system setting page, such as the desktop resource, is loaded at the startup, and the loaded desktop can be displayed to implement the startup of the operating system, and then The resource data of the non-set page is loaded when the operating system is idle or the device resource is occupied less, so that the operating system startup speed is improved without affecting the normal use of the system.
本申请实施例也可应用到系统中可运行的应用程序中,应用程序通常由多个页面组成,每个页面相对是独立的。应用在启动时有较多的初始化操作,因为可基于应用程序不同页面彼此独立的特点,将应用程序的不同页面分开加载。因此也可预先收集该应用程序的资源,然后按照页面对资源进行划分,得到设定页面的资源数据和非设定页面的资源数据,其中每个页面的资源数据可放到一个单独的文件或者模块中。在启动时获取设定页面的资源数据并加载,然后显示该设定页面即可完成对应用程序的启动,而对于非设定页面可在启动后应用程序处于空闲状态或接收到执行信息后,获取相应页面的资源数据并加载,从而提升了应用的启动速度。The embodiment of the present application can also be applied to an executable application in a system, and the application usually consists of multiple pages, and each page is relatively independent. The application has more initialization operations at startup because the different pages of the application can be loaded separately based on the characteristics of the different pages of the application. Therefore, the resources of the application may also be collected in advance, and then the resources are divided according to the page, and the resource data of the set page and the resource data of the non-set page are obtained, wherein the resource data of each page may be put into a separate file or In the module. Get the resource data of the setting page at startup and load it, then display the setting page to complete the startup of the application, and for the non-setting page, after the startup is idle or after receiving the execution information, Get the resource data of the corresponding page and load it, which improves the startup speed of the application.
本申请实施例提供了一个或多个计算机可读介质,其上存储有指令,当由一个或多个处理器执行时,使得终端设备执行本申请实施例所述的启动方法。The embodiment of the present application provides one or more computer readable media having stored thereon instructions that, when executed by one or more processors, cause the terminal device to perform the booting method described in the embodiments of the present application.
本申请实施例提供了一个或多个计算机可读介质,其上存储有指令,当由一个或多个处理器执行时,使得服务器执行本申请实施例所述的启动配置方法。The embodiment of the present application provides one or more computer readable media having stored thereon instructions that, when executed by one or more processors, cause the server to perform the boot configuration method described in the embodiments of the present application.
图8为本申请一实施例提供的设备的硬件结构示意图,该设备可包括终端设备和计算设备。如图8所示,该设备可以包括输入设备80、处理器81、输出设备82、存储器83和至少一个通信总线84。通信总线84用于实现元件之间的通信连接。存储器83可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,存储器83中可以存储各种程序,用于完成各种处理功能以及实现本实施例的方法步骤。FIG. 8 is a schematic structural diagram of a hardware of a device according to an embodiment of the present disclosure, where the device may include a terminal device and a computing device. As shown in FIG. 8, the device can include an input device 80, a processor 81, an output device 82, a memory 83, and at least one communication bus 84. Communication bus 84 is used to implement a communication connection between the components. Memory 83 may include high speed RAM memory, and may also include non-volatile memory NVM, such as at least one disk memory, in which various programs may be stored for performing various processing functions and implementing the method steps of the present embodiments.
可选的,上述处理器81例如可以为中央处理器(Central Processing Unit,简称CPU)、应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,该处理器81通过有线或无线连接耦合到上述输入设备80和输出 设备82。Optionally, the processor 81 may be, for example, a central processing unit (CPU), an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), and a programmable logic. A device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component is implemented that is coupled to the input device 80 and output device 82 described above by a wired or wireless connection.
可选的,上述输入设备80可以包括多种输入设备,例如可以包括面向用户的用户接口、面向设备的设备接口、软件的可编程接口、摄像头、传感器中至少一种。可选的,该面向设备的设备接口可以是用于设备与设备之间进行数据传输的有线接口、还可以是用于设备与设备之间进行数据传输的硬件插入接口(例如USB接口、串口等);可选的,该面向用户的用户接口例如可以是面向用户的控制按键、用于接收语音输入的语音输入设备以及用户接收用户触摸输入的触摸感知设备(例如具有触摸感应功能的触摸屏、触控板等);可选的,上述软件的可编程接口例如可以是供用户编辑或者修改程序的入口,例如芯片的输入引脚接口或者输入接口等;可选的,上述收发信机可以是具有通信功能的射频收发芯片、基带处理芯片以及收发天线等。麦克风等音频输入设备可以接收语音数据。输出设备82可以包括显示器、音响等输出设备。Optionally, the input device 80 may include multiple input devices, for example, at least one of a user-oriented user interface, a device-oriented device interface, a software programmable interface, a camera, and a sensor. Optionally, the device-oriented device interface may be a wired interface for data transmission between the device and the device, or may be a hardware insertion interface (for example, a USB interface, a serial port, etc.) for data transmission between the device and the device. Optionally, the user-oriented user interface may be, for example, a user-oriented control button, a voice input device for receiving voice input, and a touch-sensing device for receiving a user's touch input (eg, a touch screen with touch sensing function, touch Optionally, the programmable interface of the software may be, for example, an input for the user to edit or modify the program, such as an input pin interface or an input interface of the chip; optionally, the transceiver may have Radio frequency transceiver chip, baseband processing chip, and transceiver antenna for communication functions. An audio input device such as a microphone can receive voice data. Output device 82 may include an output device such as a display, an audio, or the like.
在本实施例中,该设备的处理器包括用于执行各设备中数据处理装置各模块的功能,具体功能和技术效果参照上述实施例即可,此处不再赘述。In this embodiment, the processor of the device includes functions for executing the modules of the data processing device in each device. The specific functions and technical effects may be referred to the foregoing embodiments, and details are not described herein again.
图9为本申请另一实施例提供的设备的硬件结构示意图。图9是对图8在实现过程中的一个具体的实施例。如图9所示,本实施例的设备包括处理器91以及存储器92。FIG. 9 is a schematic structural diagram of hardware of a device according to another embodiment of the present disclosure. Figure 9 is a specific embodiment of the implementation of Figure 8. As shown in FIG. 9, the apparatus of this embodiment includes a processor 91 and a memory 92.
处理器91执行存储器92所存放的计算机程序代码,实现上述实施例中图1至图4的启动及启动配置方法。The processor 91 executes the computer program code stored in the memory 92 to implement the startup and startup configuration methods of FIGS. 1 to 4 in the above embodiment.
存储器92被配置为存储各种类型的数据以支持在设备的操作。这些数据的示例包括用于在设备上操作的任何应用程序或方法的指令,例如消息,图片,视频等。存储器92可能包含随机存取存储器(random access memory,简称RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。 Memory 92 is configured to store various types of data to support operation at the device. Examples of such data include instructions for any application or method operating on the device, such as messages, pictures, videos, and the like. The memory 92 may include a random access memory (RAM), and may also include a non-volatile memory such as at least one disk storage.
可选地,处理器91设置在处理组件90中。该设备还可以包括:通信组件93,电源组件94,多媒体组件95,音频组件96,输入/输出接口97和/或传感器组件98。设备具体所包含的组件等依据实际需求设定,本实施例对此不作限定。Optionally, processor 91 is disposed in processing component 90. The device may also include a communication component 93, a power component 94, a multimedia component 95, an audio component 96, an input/output interface 97, and/or a sensor component 98. The components and the like included in the device are set according to actual requirements, which is not limited in this embodiment.
处理组件90通常控制设备的整体操作。处理组件90可以包括一个或多个处理器91来执行指令,以完成上述图1至图4方法的全部或部分步骤。此外,处理组件90可以包括一个或多个模块,便于处理组件90和其他组件之间的交互。例如,处理组件90可以包括多媒体模块,以方便多媒体组件95和处理组件90之间的交互。 Processing component 90 typically controls the overall operation of the device. Processing component 90 may include one or more processors 91 to execute instructions to perform all or part of the steps of the above-described methods of Figures 1-4. Moreover, processing component 90 can include one or more modules to facilitate interaction between component 90 and other components. For example, processing component 90 can include a multimedia module to facilitate interaction between multimedia component 95 and processing component 90.
电源组件94为设备的各种组件提供电力。电源组件94可以包括电源管理系统,一个或多个电源,及其他与为设备生成、管理和分配电力相关联的组件。 Power component 94 provides power to various components of the device. Power component 94 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device.
多媒体组件95包括在设备和用户之间的提供一个输出接口的显示屏。在一些实施例中,显示屏可以包括液晶显示器(LCD)和触摸面板(TP)。如果显示屏包括触摸面板,显示屏可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。The multimedia component 95 includes a display screen between the device and the user that provides an output interface. In some embodiments, the display screen can include a liquid crystal display (LCD) and a touch panel (TP). If the display includes a touch panel, the display can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
音频组件96被配置为输出和/或输入音频信号。例如,音频组件96包括一个麦克风(MIC),当设备处于操作模式,如语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器92或经由通信组件93发送。在一些实施例中,音频组件96还包括一个扬声器,用于输出音频信号。The audio component 96 is configured to output and/or input an audio signal. For example, audio component 96 includes a microphone (MIC) that is configured to receive an external audio signal when the device is in an operational mode, such as a voice recognition mode. The received audio signal may be further stored in memory 92 or transmitted via communication component 93. In some embodiments, audio component 96 also includes a speaker for outputting an audio signal.
输入/输出接口97为处理组件90和外围接口模块之间提供接口,上述外围接口模块可以是点击轮,按钮等。这些按钮可包括但不限于:音量按钮、启动按钮和锁定按钮。The input/output interface 97 provides an interface between the processing component 90 and the peripheral interface module, which may be a click wheel, a button, or the like. These buttons may include, but are not limited to, a volume button, a start button, and a lock button.
传感器组件98包括一个或多个传感器,用于为设备提供各个方面的状态评估。例如,传感器组件98可以检测到设备的打开/关闭状态,组件的相对定位,用户与设备接触的存在或不存在。传感器组件98可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在,包括检测用户与设备间的距离。在一些实施例中,该传感器组件98还可以包括摄像头等。 Sensor assembly 98 includes one or more sensors for providing a status assessment of various aspects of the device. For example, sensor component 98 can detect the on/off state of the device, the relative positioning of the components, and the presence or absence of user contact with the device. Sensor assembly 98 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact, including detecting the distance between the user and the device. In some embodiments, the sensor assembly 98 can also include a camera or the like.
通信组件93被配置为便于设备和其他设备之间有线或无线方式的通信。设备可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个实施例中,该设备中可以包括SIM卡插槽,该SIM卡插槽用于插入SIM卡,使得设备可以登录GPRS网络,通过互联网与服务器建立通信。 Communication component 93 is configured to facilitate wired or wireless communication between the device and other devices. The device can access a wireless network based on communication standards such as WiFi, 2G or 3G, or a combination thereof. In one embodiment, the device may include a SIM card slot for inserting the SIM card so that the device can log into the GPRS network to establish communication with the server via the Internet.
由上可知,在图9实施例中所涉及的通信组件93、音频组件96以及输入/输出接口97、传感器组件98均可以作为图9实施例中的输入设备的实现方式。As can be seen from the above, the communication component 93, the audio component 96, and the input/output interface 97 and the sensor component 98 involved in the embodiment of FIG. 9 can be implemented as an input device in the embodiment of FIG.
在本实施例的一种终端设备,包括:一个或多个处理器;和其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述终端设备执行如本申请实施例中一个或多个所述的启动方法。A terminal device in this embodiment, comprising: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, The terminal device performs the startup method as described in one or more of the embodiments of the present application.
在本实施例的一种服务器,包括:一个或多个处理器;和其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述服务器执行如本申请实施例中一个或多个所述的启动配置方法。A server in the embodiment, comprising: one or more processors; and one or more machine readable medium having stored thereon instructions, when executed by the one or more processors, The server performs the boot configuration method as described in one or more of the embodiments of the present application.
本申请实施例还提供一种操作系统,如图10所示,该终端设备的操作系统包括:加载单元1002、显示单元1004。The embodiment of the present application further provides an operating system. As shown in FIG. 10, the operating system of the terminal device includes: a loading unit 1002 and a display unit 1004.
加载单元1002,接收软件启动指令;获取设定页面的资源数据;加载所述资源数据。The loading unit 1002 receives a software startup instruction, acquires resource data of the setting page, and loads the resource data.
显示单元1004,显示对应的设定页面。The display unit 1004 displays a corresponding setting page.
从而在该操作系统启动或操作系统中应用程序启动时,可以通过加载单元1002获取设定页面的资源数据;加载所述资源数据;通过显示单元1004显示对应的设定页面;显示对应的设定页面后,加载单元1004还可加载非设定页面的资源数据。Therefore, when the operating system is started or the application is started in the operating system, the resource data of the setting page may be acquired by the loading unit 1002; the resource data is loaded; the corresponding setting page is displayed by the display unit 1004; and the corresponding setting is displayed. After the page, the loading unit 1004 can also load resource data of the non-set page.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments can be referred to each other.
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
在一个典型的配置中,所述计算机设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium. Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据 处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The instruction device implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device such that a series of operational steps are performed on the computer or other programmable terminal device to produce computer-implemented processing, such that the computer or other programmable terminal device The instructions executed above provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。While a preferred embodiment of the embodiments of the present application has been described, those skilled in the art can make further changes and modifications to the embodiments once they are aware of the basic inventive concept. Therefore, the appended claims are intended to be interpreted as including all the modifications and the modifications
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Furthermore, the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, or terminal device that includes a plurality of elements includes not only those elements but also Other elements that are included, or include elements inherent to such a process, method, article, or terminal device. An element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that comprises the element, without further limitation.
以上对本申请所提供的一种启动方法和装置,一种启动配置方法和装置、一种终端设备、一种服务器,一种可读介质和一种操作系统,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above describes a startup method and device provided by the present application, a startup configuration method and device, a terminal device, a server, a readable medium and an operating system, which are described in detail herein. The principles and implementations of the present application are described in the following examples. The description of the above embodiments is only for helping to understand the method of the present application and its core ideas. Meanwhile, for those skilled in the art, according to the idea of the present application, The details of the present invention and the scope of the application are subject to change. In the above, the contents of the present specification should not be construed as limiting the present application.

Claims (28)

  1. 一种启动方法,其特征在于,所述的方法包括:A startup method, characterized in that the method comprises:
    接收软件启动指令;Receiving a software startup command;
    获取所述软件对应设定页面的资源数据,其中,所述软件包括操作系统和/或应用程序;Obtaining resource data of the software corresponding setting page, where the software includes an operating system and/or an application;
    加载所述资源数据,显示对应的设定页面。The resource data is loaded, and the corresponding setting page is displayed.
  2. 根据权利要求1所述的方法,其特征在于,显示对应的设定页面之后,还包括:The method according to claim 1, wherein after displaying the corresponding setting page, the method further comprises:
    加载所述软件对应非设定页面的资源数据。The resource data corresponding to the non-set page is loaded by the software.
  3. 根据权利要求2所述的方法,其特征在于,加载所述软件对应非设定页面的资源数据,包括:The method according to claim 2, wherein loading the software data corresponding to the non-set page comprises:
    在判断所述软件处于空闲状态后,加载所述软件对应非设定页面的资源数据。After determining that the software is in an idle state, loading the software data corresponding to the non-set page.
  4. 根据权利要求2所述的方法,其特征在于,加载所述软件对应非设定页面的资源数据,包括:The method according to claim 2, wherein loading the software data corresponding to the non-set page comprises:
    在接收到进入指定非设定页面的指示信息,加载所述指定非设定页面的资源数据。The resource data of the specified non-setting page is loaded upon receiving the indication information of entering the specified non-setting page.
  5. 根据权利要求2-4任一所述的方法,其特征在于,加载所述软件对应非设定页面的资源数据,包括:The method according to any one of claims 2-4, wherein loading the software data corresponding to the non-set page comprises:
    所述软件对应非设定页面的资源数据通过一次或多次加载。The software data is loaded one or more times corresponding to the resource data of the non-set page.
  6. 根据权利要求1或2所述的方法,其特征在于,所述资源数据包括:元素数据和属性数据。The method according to claim 1 or 2, wherein the resource data comprises: element data and attribute data.
  7. 根据权利要求6所述的方法,其特征在于,加载资源数据的步骤包括:The method of claim 6 wherein the step of loading resource data comprises:
    从所述资源数据中获取元素数据和属性数据;Obtaining element data and attribute data from the resource data;
    采用所述属性数据和元素数据,生成对应的页面,所述页面包括:设定页面的页面和/或非设定页面的页面。Using the attribute data and the element data, a corresponding page is generated, and the page includes: a page of setting a page and/or a page of a non-setting page.
  8. 根据权利要求7所述的方法,其特征在于,所述属性数据包括布局信息和尺寸信息。The method of claim 7, wherein the attribute data comprises layout information and size information.
  9. 根据权利要求8所述的方法,其特征在于,所述采用所述属性数据和元素数据,生成对应的页面,包括:The method according to claim 8, wherein the generating the corresponding page by using the attribute data and the element data comprises:
    采用所述布局信息确定各元素数据在页面中的位置,并依据所述尺寸信息确定所述元素数据的尺寸;Determining, by the layout information, a location of each element data in the page, and determining a size of the element data according to the size information;
    依据所述位置和尺寸设置所述元素数据,生成对应的页面。The element data is set according to the position and size to generate a corresponding page.
  10. 根据权利要求9所述的方法,其特征在于,所述元素数据包括以下至少一项:文本信息、图片信息、视频信息、音频信息、链接信息、按钮、图标。The method according to claim 9, wherein the element data comprises at least one of the following: text information, picture information, video information, audio information, link information, buttons, icons.
  11. 根据权利要求9所述的方法,其特征在于,所述属性数据还包括颜色信息;所述的方法还包括:The method of claim 9, wherein the attribute data further comprises color information; the method further comprising:
    依据所述颜色信息设置文本信息的颜色;和/或Setting the color of the text information according to the color information; and/or
    依据所述颜色信息设置所述页面的背景颜色。Setting a background color of the page according to the color information.
  12. 根据权利要求1所述的方法,其特征在于,所述操作系统包括车载操作系统。The method of claim 1 wherein the operating system comprises an in-vehicle operating system.
  13. 一种启动配置方法,其特征在于,包括:A startup configuration method, comprising:
    按照页面将软件的资源数据划分为至少两个资源数据,其中一个资源数据对应设定页面,所述软件包括操作系统和/或应用程序;According to the page, the resource data of the software is divided into at least two resource data, where one resource data corresponds to a setting page, and the software includes an operating system and/or an application;
    对所述资源数据分别进行存储。The resource data is separately stored.
  14. 根据权利要求13所述的方法,其特征在于,按照页面将软件的资源数据划分为至少两个资源数据,包括:The method according to claim 13, wherein dividing the resource data of the software into at least two resource data according to the page comprises:
    抽取所述软件对应设定页面的资源数据,构成所述设定页面的资源数据;Extracting resource data corresponding to the setting page of the software to form resource data of the setting page;
    抽取所述软件对应非设定页面的资源数据,构成至少一个资源数据。Extracting the resource data corresponding to the non-set page of the software to form at least one resource data.
  15. 根据权利要求13所述的方法,其特征在于,所述资源数据包括:元素数据和属性数据。The method according to claim 13, wherein said resource data comprises: element data and attribute data.
  16. 根据权利要求15所述的方法,其特征在于,所述元素数据包括以下至少一项:文本信息、图片信息、视频信息、音频信息、链接信息;所述属性数据包括布局信息、尺寸信息和颜色信息。The method according to claim 15, wherein the element data comprises at least one of: text information, picture information, video information, audio information, link information; the attribute data includes layout information, size information, and color. information.
  17. 根据权利要求13所述的方法,其特征在于,还包括:The method of claim 13 further comprising:
    记录各资源数据的名称和路径信息。Record the name and path information of each resource data.
  18. 一种启动装置,其特征在于,所述的装置包括:An activation device, characterized in that the device comprises:
    接收模块,用于接收软件启动指令;a receiving module, configured to receive a software startup instruction;
    获取模块,用于获取所述软件对应设定页面的资源数据,其中,所述软件包括操作系统和/或应用程序;An acquiring module, configured to acquire resource data of a corresponding setting page of the software, where the software includes an operating system and/or an application;
    加载模块,用于加载所述资源数据;a loading module, configured to load the resource data;
    显示模块,用于显示对应的设定页面。A display module for displaying a corresponding setting page.
  19. 根据权利要求18所述的装置,其特征在于,The device of claim 18, wherein
    所述加载模块,还用于在显示对应的设定页面之后,加载所述软件对应非设定页面 的资源数据。The loading module is further configured to load resource data corresponding to the non-setting page of the software after displaying the corresponding setting page.
  20. 根据权利要求19所述的装置,其特征在于,The device according to claim 19, characterized in that
    所述加载模块,用于在判断所述软件处于空闲状态,加载所述软件对应非设定页面的资源数据;以及,在接收到进入指定页的指示信息,加载所述指定页的资源数据。The loading module is configured to: when it is determined that the software is in an idle state, load the resource data corresponding to the non-set page of the software; and, after receiving the indication information of entering the specified page, load the resource data of the specified page.
  21. 一种启动配置装置,其特征在于,包括:An activation configuration device, comprising:
    划分模块,用于按照页面将软件的资源数据划分为至少两个资源数据,其中一个资源数据对应设定页面,所述软件包括操作系统和/或应用程序;a dividing module, configured to divide resource data of the software into at least two resource data according to a page, where one resource data corresponds to a setting page, and the software includes an operating system and/or an application;
    存储模块,用于对所述资源数据分别进行存储。And a storage module, configured to separately store the resource data.
  22. 根据权利要求21所述的装置,其特征在于,所述划分模块,包括:The device according to claim 21, wherein the dividing module comprises:
    设定页面抽取子模块,用于抽取所述软件对应设定页面的资源数据,构成所述设定页面的资源数据;Setting a page extraction submodule, configured to extract resource data of the software corresponding setting page, and constituting resource data of the setting page;
    非设定页面抽取子模块,用于抽取所述软件对应非设定页面的资源数据,构成至少一个资源数据。The non-setting page extraction sub-module is configured to extract resource data corresponding to the non-set page of the software, and constitute at least one resource data.
  23. 根据权利要求22所述的装置,其特征在于,所述资源数据包括:元素数据和属性数据,所述元素数据包括以下至少一项:文本信息、图片信息、视频信息、音频信息、链接信息;所述属性数据包括布局信息、尺寸信息和颜色信息。The device according to claim 22, wherein the resource data comprises: element data and attribute data, the element data comprising at least one of the following: text information, picture information, video information, audio information, link information; The attribute data includes layout information, size information, and color information.
  24. 一种终端设备,其特征在于,包括:A terminal device, comprising:
    一个或多个处理器;和One or more processors; and
    其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述终端设备执行如权利要求1-12中一个或多个所述的方法。One or more machine-readable media having stored thereon instructions that, when executed by the one or more processors, cause the terminal device to perform the method of one or more of claims 1-12.
  25. 一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得终端设备执行如权利要求1-12中一个或多个所述的方法。One or more machine-readable medium having stored thereon instructions that, when executed by one or more processors, cause the terminal device to perform the method of one or more of claims 1-12.
  26. 一种服务器,其特征在于,包括:A server, comprising:
    一个或多个处理器;和One or more processors; and
    其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述服务器执行如权利要求13-17中一个或多个所述的方法。One or more machine-readable media having stored thereon instructions that, when executed by the one or more processors, cause the server to perform the method of one or more of claims 13-17.
  27. 一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得服务器执行如权利要求13-17中一个或多个所述的方法。One or more machine-readable media having stored thereon instructions that, when executed by one or more processors, cause the server to perform the method of one or more of claims 13-17.
  28. 一种操作系统,其特征在于,包括:An operating system, comprising:
    加载单元,接收软件启动指令;获取设定页面的资源数据;加载所述资源数据;Loading a unit, receiving a software startup instruction; acquiring resource data of a setting page; loading the resource data;
    显示单元,显示对应的设定页面。The display unit displays the corresponding setting page.
PCT/CN2018/093951 2017-07-12 2018-07-02 Startup and configuration method, apparatus and device, medium, and operating system WO2019011141A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710566141.3 2017-07-12
CN201710566141.3A CN109254801A (en) 2017-07-12 2017-07-12 Starting, configuration method, device, equipment, medium and operating system

Publications (1)

Publication Number Publication Date
WO2019011141A1 true WO2019011141A1 (en) 2019-01-17

Family

ID=65001253

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/093951 WO2019011141A1 (en) 2017-07-12 2018-07-02 Startup and configuration method, apparatus and device, medium, and operating system

Country Status (2)

Country Link
CN (1) CN109254801A (en)
WO (1) WO2019011141A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021056343A1 (en) * 2019-09-26 2021-04-01 深圳市大疆创新科技有限公司 Display interface control method, communication control method and system, and control terminal
CN112905256B (en) * 2019-12-03 2024-02-09 北京奇艺世纪科技有限公司 Data processing method, device, electronic equipment and storage medium
CN110888690A (en) * 2019-12-12 2020-03-17 北京爱奇艺科技有限公司 Application starting method and device, electronic equipment and storage medium
CN113867838A (en) * 2021-09-26 2021-12-31 掌阅科技股份有限公司 Application program starting method, electronic equipment and computer storage medium
CN114003308A (en) * 2021-10-28 2022-02-01 上海米哈游璃月科技有限公司 Project text resource loading method and device, electronic equipment and storage medium
CN114356449A (en) * 2021-12-29 2022-04-15 广州久邦世纪科技有限公司 Application program loading method
CN115756627A (en) * 2022-09-26 2023-03-07 芯华章科技(北京)有限公司 Method, apparatus and storage medium for starting software according to function

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982113A (en) * 2012-11-08 2013-03-20 山东大学 Page loading method for browser based on content grouping of Android system
CN103345405A (en) * 2013-06-09 2013-10-09 贝壳网际(北京)安全技术有限公司 Application program starting method and device and client
US20130297923A1 (en) * 2012-05-07 2013-11-07 Fujitsu Limited Method of starting performed by computer and computer apparatus
CN103677922A (en) * 2013-12-13 2014-03-26 北京奇虎科技有限公司 Method and device for starting application software
CN104090787A (en) * 2014-06-25 2014-10-08 可牛网络技术(北京)有限公司 Starting method and starting device for home page of application software
CN104899052A (en) * 2014-03-07 2015-09-09 可牛网络技术(北京)有限公司 Startup method and startup device of application software home page

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448149B (en) * 2007-11-26 2011-03-30 联想(北京)有限公司 Computer and method for playing animations during startup process thereof
EP2395427A1 (en) * 2010-06-08 2011-12-14 Gemalto SA Method for connecting to a remote server from a browser enabled with a browser's extension on a host device
CN103399866A (en) * 2013-07-05 2013-11-20 北京小米科技有限责任公司 Webpage rendering method, device and equipment
CN104572197B (en) * 2014-12-31 2018-09-04 北京奇虎科技有限公司 A kind for the treatment of method and apparatus of startup item
CN106648773A (en) * 2016-12-16 2017-05-10 四川长虹电器股份有限公司 Method for achieving rapid starting based on Android system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130297923A1 (en) * 2012-05-07 2013-11-07 Fujitsu Limited Method of starting performed by computer and computer apparatus
CN102982113A (en) * 2012-11-08 2013-03-20 山东大学 Page loading method for browser based on content grouping of Android system
CN103345405A (en) * 2013-06-09 2013-10-09 贝壳网际(北京)安全技术有限公司 Application program starting method and device and client
CN103677922A (en) * 2013-12-13 2014-03-26 北京奇虎科技有限公司 Method and device for starting application software
CN104899052A (en) * 2014-03-07 2015-09-09 可牛网络技术(北京)有限公司 Startup method and startup device of application software home page
CN104090787A (en) * 2014-06-25 2014-10-08 可牛网络技术(北京)有限公司 Starting method and starting device for home page of application software

Also Published As

Publication number Publication date
CN109254801A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
WO2019011141A1 (en) Startup and configuration method, apparatus and device, medium, and operating system
US10976773B2 (en) User terminal device and displaying method thereof
US11778430B2 (en) Layers in messaging applications
US9448694B2 (en) Graphical user interface for navigating applications
US20170235435A1 (en) Electronic device and method of application data display therefor
CN104035672B (en) For providing the mobile device and its control method of preview by detection rubbing gesture
US20170244907A1 (en) Electronic device and method for image processing
EP2778870B1 (en) Method and apparatus for copying and pasting of data
CN108463799B (en) Flexible display of electronic device and operation method thereof
WO2018068657A1 (en) Interface moving method, device, intelligent terminal, server and operating system
AU2014275609B2 (en) Portable terminal and user interface method in portable terminal
US20150278164A1 (en) Method and apparatus for constructing documents
WO2018176960A1 (en) Network picture displaying method, device and user terminal
US10402470B2 (en) Effecting multi-step operations in an application in response to direct manipulation of a selected object
WO2013178124A1 (en) Method and device for processing application shortcut
US10353988B2 (en) Electronic device and method for displaying webpage using the same
US20150180998A1 (en) User terminal apparatus and control method thereof
WO2019047508A1 (en) Method for processing e-book comment information, electronic device and storage medium
JP2020537794A (en) Icon display method, device, and system
JP2018528634A (en) Method and device for previewing moving image and method and device for displaying expression package
WO2017008646A1 (en) Method of selecting a plurality targets on touch control terminal and equipment utilizing same
CN113835571A (en) Terminal device, information display method and storage medium
US10652105B2 (en) Display apparatus and controlling method thereof
TWI511047B (en) Operating system switching method and dual operating system electronic device using the same
US20230259262A1 (en) Interface information presenting method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18831401

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

Country of ref document: EP

Kind code of ref document: A1