CN113064636A - System starting method and computer equipment - Google Patents

System starting method and computer equipment Download PDF

Info

Publication number
CN113064636A
CN113064636A CN201911403400.6A CN201911403400A CN113064636A CN 113064636 A CN113064636 A CN 113064636A CN 201911403400 A CN201911403400 A CN 201911403400A CN 113064636 A CN113064636 A CN 113064636A
Authority
CN
China
Prior art keywords
application
started
interface
starting
main interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911403400.6A
Other languages
Chinese (zh)
Inventor
江亭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201911403400.6A priority Critical patent/CN113064636A/en
Publication of CN113064636A publication Critical patent/CN113064636A/en
Pending legal-status Critical Current

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/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a system starting method and computer equipment, wherein the method comprises the following steps: responding to a starting instruction, and determining an application identifier of an application to be started; and starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started serves as a starting main interface. After receiving a starting instruction, the application identification of the application to be started is determined, the application to be started is set in a self-defining mode, if the application to be started is started successfully, the application to be started is directly entered after starting, and the main interface of the application to be started is displayed, so that the entered application and the displayed interface after the android system is started can be set in a self-defining mode, customizability of the android system is enriched, and requirements of users are met.

Description

System starting method and computer equipment
Technical Field
The invention relates to the technical field of android systems, in particular to a system starting method and computer equipment.
Background
The Android system is an open source system which greatly enriches diversification of intelligent equipment, and installation package (APK) application of various functions improves the playability of users, which is the greatest advantage of the Android system, and the playability requirements of the users on the intelligent equipment are more and more strong, wherein customizability is an angle for meeting the requirements.
The desktop Launcher (Launcher) of the android system is the first interface after the android system is started, namely the default main interface of the system. At present, the Android system can only enter a system default main interface after being started, customizability of the Android system is mainly embodied in aspects of themes, wallpaper, interface styles and the like of the optional system default main interface, but the interface entered after the Android system is started cannot be set by a user in a customized manner, and the use requirement of the user cannot be met to a certain extent.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide a system starting method and computer equipment, which can realize that an android system skips a system main interface after being started, directly enters an application to be started set by a user, displays the main interface of the application to be started, and enriches the customizability of the android system.
In a first aspect, the present invention provides a system startup method, including:
responding to a starting instruction, and determining an application identifier of an application to be started;
and starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started serves as a starting main interface.
As a further improved technical solution, the starting, according to the application identifier, the application to be started corresponding to the application identifier includes:
calling a starting activity lock interface in an application starter object according to the application identifier;
calling a start starting function in the start activity lock interface, wherein the parameter of the start starting function comprises the application identification;
determining an application program package corresponding to the application to be started according to the parameters of the starting function;
and starting the application to be started according to the application program package.
As a further improved technical solution, the starting of the application to be started corresponding to the application identifier so that the main interface of the application to be started serves as a starting main interface includes:
after the application to be started corresponding to the application identifier is started, initializing a main interface of the application to be started;
and if the main interface of the application to be started is determined to be initialized successfully, taking the main interface of the application to be started as a starting main interface.
As a further improved technical solution, the method further comprises:
and if the main interface of the application to be started fails to be initialized, taking the default main interface of the system as a starting main interface.
As a further improved technical solution, the determining that the initialization of the main interface of the application to be started fails includes:
calling an interface initialization function corresponding to the application to be started, and monitoring a callback result of the interface initialization function;
and if the callback result is starting error information, determining that the initialization of the main interface of the application to be started fails.
As a further improved technical solution, after the application to be started corresponding to the application identifier is started according to the application identifier, so that the main interface of the application to be started serves as a startup main interface, the method further includes:
acquiring an exit instruction, and judging whether the exit instruction is an instruction for exiting the main interface of the starting machine or not;
and if the exit instruction is an instruction for exiting the starting main interface, taking the default main interface of the system as the interface after exiting the starting main interface.
As a further improved technical solution, the determining whether the quitting instruction is an instruction to quit the startup main interface includes:
deleting interface data at the top of the stack according to the exit instruction, wherein the stack records the interface data in a first-in last-out mode, and the interface data at least comprises data corresponding to the starting main interface;
and if the interface data in the stack is empty after the interface data at the top of the stack is deleted, determining that the quit instruction is a quit instruction for quitting the main interface of the startup machine.
As a further improved technical solution, before responding to the boot instruction, the method further includes:
receiving a setting instruction, and determining an application to be started according to the setting instruction;
and analyzing the application program package corresponding to the application to be started to obtain the application identifier corresponding to the application program package.
In a second aspect, the present invention provides a computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the following steps when executing the computer program:
responding to a starting instruction, and determining an application identifier of an application to be started;
and starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started serves as a starting main interface.
In a third aspect, the present invention provides a computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of:
responding to a starting instruction, and determining an application identifier of an application to be started;
and starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started serves as a starting main interface.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, the application identifier of the application to be started is determined in response to the starting instruction; and starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started serves as a starting main interface. After receiving a starting instruction, the application identification of the application to be started is determined, the application to be started is set in a self-defining mode, if the application to be started is started successfully, the application to be started is directly entered after starting, and the main interface of the application to be started is displayed, so that the entered application and the displayed interface after the android system is started can be set in a self-defining mode, customizability of the android system is enriched, and requirements of users are met.
Drawings
FIG. 1 is a schematic diagram of a system boot method according to an embodiment of the present invention;
fig. 2 is an internal structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The inventor finds that the android system can only enter the default main interface of the system after being started at present, and the customizability of the android system is mainly embodied in the aspects of themes, wallpaper, interface styles and the like of the default main interface of the system; when a user needs to open an application, the user can only enter the application by selecting the application in a default main interface after the system is started, and the user cannot directly enter the application after the system is started, so that the use requirement of the user cannot be met to a certain extent.
In order to solve the above problem, in the embodiment of the present invention, in response to a boot instruction, an application identifier of an application to be started is determined; and starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started serves as a starting main interface. After receiving a starting instruction, the application identification of the application to be started is determined, the application to be started is set in a self-defining mode, if the application to be started is started successfully, the application to be started is directly entered after starting, and the main interface of the application to be started is displayed, so that the entered application and the displayed interface after the android system is started can be set in a self-defining mode, customizability of the android system is enriched, and requirements of users are met.
The system starting method provided by the embodiment of the invention can be applied to terminals of an android system, wherein the terminals can be but are not limited to computers, notebook computers, mobile phones, tablet computers and portable wearable devices.
Various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a system startup method in an embodiment of the present invention is shown, where the method includes:
and S1, responding to the starting instruction, and determining the application identification of the application to be started.
In the embodiment of the invention, the terminal starts an Application Management Service (AMS) in the android system according to the starting instruction, and the AMS is used for managing the behavior of the application, controlling the life cycle of the application, dispatching message events and the like for the android system. The starting process of the native android system is that AMS is started first, after the AMS is started, a systemReady () function of the AMS is called, then a startHomeActivityLocke () function is called to start a default desktop starter (Launcher), the desktop starter is started completely, and a default interface of the system is displayed after the system is started completely.
In the embodiment of the invention, the starting flow of the android system is modified, the systemReady () function of the AMS is not directly called after the AMS is started, and the application identification of the application to be started is determined firstly after the AMS is started.
The application to be started is a custom setting, and the application to be started can be set as an application with the highest use frequency or an application required for processing important matters, for example, WeChat is an application with the highest use frequency, and WeChat can be used as the application to be started; or, important items need to be determined in the mailbox in time, and the mailbox can be used as the application to be started.
In the embodiment of the present invention, the application identifier corresponds to an application to be started, and in actual application, the application identifier is a package name of an application package corresponding to the application to be started. Before responding to the boot instruction, the system booting method provided by the present invention further includes a preset process, wherein the application identifier of the application to be booted is determined in the preset process, and the preset process will be described in detail later.
And S2, starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started is used as a starting main interface.
In the embodiment of the invention, if the application identifier is determined, a starting function corresponding to the application identifier is called, the application to be started is started according to the starting function, if the application to be started is started, the starting interface is initialized, and if the initialization is successful, the main interface of the application to be started is used as the interface displayed by the terminal after the starting. The main interface of the application to be started is an interface displayed by the terminal after entering the application to be started. For example, if the application to be started is WeChat, the main interface of the application to be started is an interface displayed after opening WeChat, or if the application to be started is Taobao, the main interface of the application to be started is an interface displayed after opening Taobao.
In the embodiment of the invention, the application to be started is started, the main interface of the application to be started is used as the starting main interface, namely, the application to be started is directly accessed after starting, and the main interface of the application to be started is displayed. For example, if the application to be started is a WeChat, the application directly enters the WeChat after being started, and an interface displayed after the WeChat is opened is displayed.
In the embodiment of the invention, the application identifier of the application to be started is determined in response to the starting instruction; and starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started serves as a starting main interface. After receiving a starting instruction, the application identification of the application to be started is determined, the application to be started is set in a self-defining mode, if the application to be started is started successfully, the application to be started is directly entered after starting, and the main interface of the application to be started is displayed, so that the entered application and the displayed interface after the android system is started can be set in a self-defining mode, customizability of the android system is enriched, and requirements of users are met.
Next, the preset process before step S1 is described.
Prior to step S1, the preset process includes:
and M1, receiving a setting instruction, and determining the application to be started according to the setting instruction.
In the embodiment of the present invention, the setting instruction may be triggered by a virtual key (or an entity key) on the terminal receiving a click operation; the setting instruction can also be obtained by receiving voice information corresponding to the setting instruction and identifying the voice information; the setting instruction can also be sent by other terminals, for example, the computer terminal sends the setting instruction to the mobile phone terminal, and the mobile phone terminal determines the application to be started according to the setting instruction.
In the embodiment of the present invention, the setting instruction includes information corresponding to an application to be started, where the information may be a name of the application to be started, and before receiving the setting instruction, the terminal scans all application packages in the system by using a package management service (PKMS), and displays, on the terminal, each application corresponding to each application package for selection; and if any application is selected, the terminal receives a setting instruction comprising information corresponding to the application, and the application corresponding to the information included in the setting instruction is the application to be started. The selected application may be an application with the highest use frequency, for example, if the use frequency of the WeChat is the highest, and the WeChat may be selected as an application to be started, the setting instruction includes information corresponding to the WeChat; or, the selected application may be an application that needs to process important items on the application, for example, if a mailbox application is selected as the application to be started, the setting instruction includes information corresponding to the mailbox application.
M2, analyzing the application program package corresponding to the application to be started to obtain the application identification corresponding to the application program package.
In the embodiment of the invention, the application program package of the application to be started can be analyzed through the PKMS to obtain the application identifier corresponding to the application program package, wherein the application identifier comprises the package name corresponding to the application program package. And after obtaining the application identifier, storing the application identifier in a system database so as to search whether the application identifier exists in the system database after receiving a starting instruction, and starting the application to be started corresponding to the application identifier when the application identifier exists in the system database. For example, the system database is persistence.sys.bootpackage, and the PKMS analyzes the application package to be started to obtain a package name "com.tcl.cybercui", and stores the package name in the system database to obtain: [ persist.sys.bootpackage ] [ com.tcl.cyberui ].
The details of determining the application identity of the application to be launched are presented next.
Specifically, step S1 includes:
s11, responding to the starting instruction, judging whether an application identifier exists in a system database, and if the application identifier exists in the system database, determining that the application identifier is the identifier of the application to be started.
In the embodiment of the invention, in response to a starting instruction, firstly, an AMS is started, after the AMS is started, whether an application identifier exists in a system database is judged, if the application identifier exists in the system database, the application identifier is shown in a preset process, an application to be started is determined, and the application identifier corresponding to the application to be started is stored in system data; so that the application to be started can be determined from the application identification in the system database.
In another implementation manner, if there is no application identifier in the system database, the application to be started cannot be started, a systemReady () function of the AMS may be called, and then a starthomeactivelocked () function is called to start a default desktop starter (Launcher), and a default startup interface of the system is displayed after the system is started.
The specific contents of starting the application to be started according to the application identification will be described next.
Specifically, step S2 includes:
and S21, calling a starting activity lock interface in the application launcher object according to the application identification.
In the embodiment of the present invention, the application starter object is mactivetystarter, mactivetystarter is used to manage a process of one-time active start, the start active lock interface is startactivalocked (), and startactivalocked () is used to start an application in an android system.
S22, calling a starting function in the starting activity lock interface, wherein the parameter of the starting function comprises the application identification.
In the embodiment of the present invention, a start starting function is called in a startactionlocked () interface, the start starting function is startBootPackage (), parameters of startBootPackage () correspond to applications, and if the parameters of startBootPackage () are different, the applications started according to startBootPackage () are different. If the application identifier is not obtained in the system database in step S11, correspondingly, in this step, the parameter of startbootpage () includes the package name of the application package corresponding to the default desktop launcher of the system.
And S23, determining the application program package corresponding to the application to be started according to the parameters of the starting function.
In the embodiment of the present invention, the operation process of the startbootpage () function is as follows: and searching an application program package corresponding to the application to be started according to the application identifier, and starting the application to be started according to the application program package. For example, in the above example, the parameters of the startbootpage () function include com.wechat.cyberui, and the startbootpage () function is run to search for the application package corresponding to com.wechat.cyberui: apk-wechat. If the application identifier is not obtained in the system database in step S11, correspondingly, in this step, the application package of the default desktop launcher is searched according to the package name corresponding to the default desktop launcher of the system.
And S24, starting the application to be started according to the application program package.
In the embodiment of the present invention, the application to be started is started according to the application package, for example, in the above example, according to the found application package: apk-wechat initiates WeChat.
In the embodiment of the present invention, the application identifier further includes a main interface name corresponding to the application to be started, where the main interface name may be obtained by, in a preset process, the PKMS analyzing the application package corresponding to the application to be started, and the package name and the main interface name obtained by the PKMS analyzing the application package corresponding to the application to be started are stored in the system database, so as to obtain: (help, sys, bootpackage) [ com, wechat, cybercui/. MainActivity ], wherein com, wechat, cybercui is a package name, and MainActivity is a main interface name; the application identifier obtained in step S11 includes the package name and the main interface name corresponding to the application to be started. Corresponding to step S1, in step S22, the parameters of the startbootpage () function include a package name and a main interface name corresponding to the application to be started, the startbootpage () function is run to search for an application package corresponding to the package name, the application package is started, and main interface data of the application to be started is obtained according to the main interface name, so as to display a main interface corresponding to the application to be started.
And S25, initializing the main interface of the application to be started after the application to be started corresponding to the application identification is started.
In the embodiment of the present invention, after the execution of step S24 is completed, the application to be started cannot interact with the user, after the application to be started is started, the main interface of the application to be started needs to be initialized, after the initialization is successful, the main interface is called back to the AMS to send the startup broadcast, the subsequent steps of the startup flow of the android system are continued, and the main interface corresponding to the application to be started is displayed after the system is started.
S26a, if the main interface of the application to be started is determined to be initialized successfully, the main interface of the application to be started is used as a starting main interface.
In the embodiment of the present invention, if the initialization of the main interface of the application to be started is successful, the interface data corresponding to the main interface of the application to be started is placed at the stack top of the stack (Activity stack) recording the interface data, so that the application to be started is started completely, and the main interface corresponding to the application to be started can be displayed on the terminal after the system is started completely, and can interact with the user.
If the application to be started is abnormal, initializing the main interface of the application to be started may fail, and in specific implementation, the step S2 further includes:
s26b, determining that the initialization of the main interface of the application to be started fails, and taking the default main interface of the system as a starting main interface.
In the embodiment of the invention, after the application to be started corresponding to the application identifier is started, the initialization function corresponding to the application to be started is called to initialize the main interface, and whether the main interface of the application to be started can be used as the starting main interface is determined according to the callback result of the initialization function. If the initialization of the main interface of the application to be started fails, the main interface of the application to be started cannot interact with a user, and the fact that the application to be started breaks down and cannot be normally used can be determined, so that the default main interface of the system is used as a starting main interface.
Specifically, step S26b includes:
s26b1, calling an interface initialization function corresponding to the application to be started, and monitoring a callback result of the interface initialization function.
In the embodiment of the present invention, the interface initialization function is an onResume () function, and calling the onResume () function is a start process for starting an application program in the android system, and is mainly to initialize the interface of the application program, so that the interface initialization function is defined in the present invention. In step S24, after the application to be started corresponding to the application identifier is started, the onResume () function corresponding to the application to be started is called to determine that the displayed main interface can interact with the user, and in the actual application, each interface switching is performed with the user, for example, when the interface is returned or the screen is horizontally or vertically cut, the onResume () function is called.
S26b2, if the callback result is the starting error information, determining that the initialization of the main interface of the application to be started fails.
In the embodiment of the present invention, if the callback result of the onResume () function is error information (for example, the error information represents error), it is determined that the initialization of the main interface of the application to be started fails, and the application to be started cannot interact with the user, and further, the callback result of the onResume () function is error, which may represent that the application to be started cannot be normally used (one application that can be normally used may interact with the user). If the initialization of the main interface of the application to be started is successful through the onResume () function, the onResume () function has no callback result, and then the subsequent steps of the startup flow of the android system are carried out until the main interface of the application to be started is displayed after the system is successfully started.
In step S26b, it is determined that initialization of the main interface of the application to be started fails, that is, it is monitored that a callback result of the onresponse () function corresponding to the application to be started is start error information, a startbootpage () function is called in the starthomeactivetyllocked () interface, and a parameter of the startbootpage () function includes a packet name corresponding to a default desktop starter of the system, so as to start the default desktop starter (Launcher), and the default main interface of the system is used as the power-on main interface after the system is started.
In another implementation manner, if it is determined that the initialization of the main interface of the application to be started fails, which indicates that the application to be started is abnormal, after the system is started, a prompt box may be popped up to reset the application to be started, where the prompt box includes all applications in the system for selection. During actual use, if the application to be started is abnormal, the application to be started can be reinstalled, and after reinstallation is completed, the reinstalled application can be selected again as the application to be started through the prompt box; other applications may also be selected as the application to be launched.
In another implementation manner, after the main interface of the application to be started is used as the power-on main interface, when the user needs to quit from the power-on main interface, a default interface of the system should be displayed, and the specific implementation manner is as follows: step S2 is followed by:
and S3, acquiring an exit instruction, and judging whether the exit instruction is an instruction for exiting the startup main interface.
In the embodiment of the present invention, the exit instruction may be triggered by a virtual key (or an entity key) on the terminal receiving a click operation according to the click operation; the quitting instruction can also be obtained by receiving voice information corresponding to the quitting instruction and identifying the voice information; the exit instruction may also be sent by other terminals, for example, the smart watch sends the exit instruction to the mobile phone end, and the mobile phone end receives an interface displayed by the terminal when exiting according to the exit instruction. For example, the second interface is entered from the first interface, and when the exit instruction is obtained at the second interface, the second interface can be exited back to the first interface according to the exit instruction.
For step S3, specifically, the step of determining whether the exit instruction is an instruction to exit the startup main interface includes:
and S31, deleting the interface data at the top of the stack according to the exit instruction, wherein the stack records the interface data in a first-in last-out mode, and the interface data at least comprises data corresponding to the starting main interface.
In the embodiment of the invention, after the system is started, in the using process of the application to be started, the first interface can be accessed through the main interface (starting main interface) of the application to be started, and the second interface can be accessed through the first interface. In step S26a, if the initialization of the main interface of the application to be started is successful, the interface data corresponding to the main interface of the application to be started is placed on the top of a stack (Activity stack) recording interface data, so that in the system startup process, the stack already has interface data corresponding to the main interface of the startup, and records interface data in a first-in last-out manner, when entering the first interface from the main interface of the startup, the interface data corresponding to the first interface is recorded in the stack, and when entering the second interface from the first interface, the interface data corresponding to the second interface is recorded in the stack; therefore, the stack has interface data corresponding to the main starting interface, the first interface and the second interface respectively, and when the exit instruction is received (at the second interface), the interface data of the second interface recorded in the stack is deleted firstly, and then the first interface is returned according to the interface data corresponding to the first interface at the top of the stack.
S32, if the interface data in the stack is empty after the interface data at the top of the stack are deleted, determining that the quit instruction is a quit instruction for quitting the main interface of the startup.
In the embodiment of the invention, the interface data corresponding to the main starting interface is at the bottom of the stack because the main starting interface is directly accessed after the start-up is finished. And because the interface data at the bottom of the stack is the interface data corresponding to the main starting interface, when the main starting interface exits, the interface data corresponding to the main starting interface is deleted, and at the moment, the interface data in the stack is empty. It means that the exit instruction is an exit instruction for exiting the main power-on interface, which is obtained at the main power-on interface.
And S4, if the quit instruction is the instruction for quitting the starting main interface, taking the default main interface of the system as the interface after quitting the starting main interface.
In the embodiment of the invention, if the exit instruction is obtained on the main starting interface, after the interface data corresponding to the main starting interface at the bottom of the stack is deleted according to the exit instruction, the stack does not have the interface data, so that the main starting interface cannot exit.
In the embodiment of the invention, if the obtained quitting instruction is judged to be the instruction for quitting the startup main interface, the default main interface of the system is used as the interface after the startup main interface is quitted, and during specific implementation, the default starter of the system is started, and the default main interface of the system is displayed after the starter is started.
The embodiment of the invention also provides computer equipment which can be a terminal, and the internal structure of the computer equipment is shown in figure 2. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a system startup method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the illustration in fig. 2 is merely a block diagram of a portion of the structure associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the invention provides computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer equipment is characterized in that the processor executes the computer program and realizes the following steps:
responding to a starting instruction, and determining an application identifier of an application to be started;
and starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started serves as a starting main interface.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
responding to a starting instruction, and determining an application identifier of an application to be started;
and starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started serves as a starting main interface.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for system startup, the method comprising:
responding to a starting instruction, and determining an application identifier of an application to be started;
and starting the application to be started corresponding to the application identifier according to the application identifier, so that the main interface of the application to be started serves as a starting main interface.
2. The method according to claim 1, wherein the starting, according to the application identifier, an application to be started corresponding to the application identifier comprises:
calling a starting activity lock interface in an application starter object according to the application identifier;
calling a start starting function in the start activity lock interface, wherein the parameter of the start starting function comprises the application identification;
determining an application program package corresponding to the application to be started according to the parameters of the starting function;
and starting the application to be started according to the application program package.
3. The method according to claim 1, wherein the starting of the application corresponding to the application identifier to be started so that a main interface of the application to be started serves as a starting main interface comprises:
after the application to be started corresponding to the application identifier is started, initializing a main interface of the application to be started;
and if the main interface of the application to be started is determined to be initialized successfully, taking the main interface of the application to be started as a starting main interface.
4. The method of claim 3, further comprising:
and if the main interface of the application to be started fails to be initialized, taking the default main interface of the system as a starting main interface.
5. The method of claim 4, wherein the determining that the initialization of the main interface of the application to be started fails comprises:
calling an interface initialization function corresponding to the application to be started, and monitoring a callback result of the interface initialization function;
and if the callback result is starting error information, determining that the initialization of the main interface of the application to be started fails.
6. The method according to claim 1, wherein after the application to be started corresponding to the application identifier is started according to the application identifier, so that a main interface of the application to be started serves as a startup main interface, the method further includes:
acquiring an exit instruction, and judging whether the exit instruction is an instruction for exiting the main interface of the starting machine or not;
and if the exit instruction is an instruction for exiting the starting main interface, taking the default main interface of the system as the interface after exiting the starting main interface.
7. The method according to claim 6, wherein the determining whether the exit instruction is an instruction to exit the interface of the computer mainframe comprises:
deleting interface data at the top of the stack according to the exit instruction, wherein the stack records the interface data in a first-in last-out mode, and the interface data at least comprises data corresponding to the starting main interface;
and if the interface data in the stack is empty after the interface data at the top of the stack is deleted, determining that the quit instruction is a quit instruction for quitting the main interface of the startup machine.
8. The method according to claims 1 to 7, wherein before responding to the boot instruction, further comprising:
receiving a setting instruction, and determining an application to be started according to the setting instruction;
and analyzing the application program package corresponding to the application to be started to obtain the application identifier corresponding to the application program package.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN201911403400.6A 2019-12-30 2019-12-30 System starting method and computer equipment Pending CN113064636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911403400.6A CN113064636A (en) 2019-12-30 2019-12-30 System starting method and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911403400.6A CN113064636A (en) 2019-12-30 2019-12-30 System starting method and computer equipment

Publications (1)

Publication Number Publication Date
CN113064636A true CN113064636A (en) 2021-07-02

Family

ID=76558412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911403400.6A Pending CN113064636A (en) 2019-12-30 2019-12-30 System starting method and computer equipment

Country Status (1)

Country Link
CN (1) CN113064636A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199691A (en) * 2014-08-21 2014-12-10 康佳集团股份有限公司 Method and device for automatically starting APK in turn-on process based on Android platform
CN105045643A (en) * 2015-09-01 2015-11-11 北京奇虎科技有限公司 Starting method and device of Launchers in Android system
CN105245954A (en) * 2015-10-12 2016-01-13 Tcl集团股份有限公司 Smart television starting method and smart television starting device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199691A (en) * 2014-08-21 2014-12-10 康佳集团股份有限公司 Method and device for automatically starting APK in turn-on process based on Android platform
CN105045643A (en) * 2015-09-01 2015-11-11 北京奇虎科技有限公司 Starting method and device of Launchers in Android system
CN105245954A (en) * 2015-10-12 2016-01-13 Tcl集团股份有限公司 Smart television starting method and smart television starting device

Similar Documents

Publication Publication Date Title
EP3403178B1 (en) Identifiers across application instances
CN106371752B (en) A kind of the virtual key implementation method and device of Android system intelligent terminal
CN109308241B (en) Method and device for monitoring starting process of application program, terminal equipment and storage medium
CN107832105B (en) Application program starting method, starting device and computer readable storage medium
EP1891743A1 (en) Mobile terminal and method for operation
CN104978231A (en) Multisystem device based on internal storage partitions and loading and switching method thereof
CN113474756A (en) Application processing method and device, storage medium and electronic equipment
CN109271154B (en) Application development platform and operation method thereof
CN106547628B (en) Multi-system resource release method and device
CN114168179A (en) Micro-service management method, device, computer equipment and storage medium
CN106028142B (en) A kind of upgrade control method and device of playback equipment
CN111143830A (en) Method and device for limiting application use, terminal equipment and storage medium
CN110417601B (en) Information prompting method, device and system in client and readable storage medium
CN109491762B (en) Container state control method and device, storage medium and electronic equipment
CN113064636A (en) System starting method and computer equipment
CN108958808A (en) Method for starting terminal and device, terminal and storage medium
CN109634782A (en) A kind of detection method of system robustness, device, storage medium and terminal
CN113849233A (en) BIOS null boot entry deleting method, system, terminal and storage medium
WO2014102301A1 (en) Method to provide connectivity capabilities to a computing device
CN115220861A (en) Virtual client management method, apparatus, medium, and device
CN111597021A (en) Method, device and system for realizing application program operation and related equipment
CN115220859A (en) Data input mode monitoring method and device, electronic equipment and storage medium
CN111240805A (en) Cloud operating system user switching processing method and device
CN117290164B (en) Information recording method at restarting, electronic device and readable storage medium
CN111443907A (en) Method and device for calling SDK function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210702

RJ01 Rejection of invention patent application after publication