CN115934281A - Method, device, equipment and medium for starting page optimization based on Android APP - Google Patents

Method, device, equipment and medium for starting page optimization based on Android APP Download PDF

Info

Publication number
CN115934281A
CN115934281A CN202211566319.1A CN202211566319A CN115934281A CN 115934281 A CN115934281 A CN 115934281A CN 202211566319 A CN202211566319 A CN 202211566319A CN 115934281 A CN115934281 A CN 115934281A
Authority
CN
China
Prior art keywords
android
starting
application
application program
app
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
CN202211566319.1A
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.)
Hozon New Energy Automobile Co Ltd
Original Assignee
Hozon New Energy Automobile 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 Hozon New Energy Automobile Co Ltd filed Critical Hozon New Energy Automobile Co Ltd
Priority to CN202211566319.1A priority Critical patent/CN115934281A/en
Publication of CN115934281A publication Critical patent/CN115934281A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A method, a device, equipment and a medium for starting page optimization based on Android APP are applied to starting of an Android APP page at a vehicle end, and the method comprises the following steps: starting an Android system, starting a process of an application program Android APP, and setting an Android application environment of the Android system; starting a process service; running a startup executed script; compiling an Android project management file of an Android system, and adding a configuration module in the project management file; creating the system component Application based on the project management file; setting the attribute of a window background image before the window background image of an Application Android APP is displayed, wherein the setting is realized based on system component Application; after the system is confirmed to start, starting a first process IDLE of the vehicle-end Android system, creating a thread process, and initializing an application program Android APP home page; and accessing the Android APP home page of the application program to start the Android APP page of the application program. According to the method and the device, the black screen and the white screen when the Android application program is started are eliminated, and the duration of the starting page rendering blockage is reduced.

Description

Method, device, equipment and medium for starting page optimization based on Android APP
Technical Field
The application belongs to the technical field of Android APP startup page optimization, and particularly relates to a method, a device, equipment and a medium for starting page optimization based on Android APP.
Background
The page starting is indispensable in the whole Android development process, and the phenomenon of screen blank or screen blank is often encountered when the app is started. For example, in our android application, android mai nfest, xml, if the me setting is black, the app ic i on tag flickers the black screen, and the other way, the screen is white. When the android application program does not perform multithreading, initialization can block rendering of UI pages for a long time after the app application program is started.
In view of this, there is a need to develop a method, an apparatus, a device, and a medium for starting page optimization based on Android APP to solve the problems of black screen and white screen when an Android application is started, and a long time for starting page rendering.
Disclosure of Invention
The application provides a method, a device, equipment and a medium for starting page optimization based on Android APP, so that black screens and white screens when Android application programs are started are eliminated, and the time for starting page rendering blocking is reduced.
The purpose of the application and the technical problem to be solved are realized by adopting the following technical scheme.
The application provides an optimized starting method for an Android APP page, which is applied to starting of an Android APP page of an application program of a vehicle-end Android system, and the optimized starting method comprises the following steps:
s1, starting an Android system, starting a process of an Application program Android APP, and creating a system component Application of an Android frame of the Android system;
s2, displaying a window background picture in a window of the Android APP based on the system component Application;
s3, after the system is confirmed to start, starting a first process IDLE of the vehicle-end Android system, creating a thread process, and initializing an application program Android APP home page;
and S4, accessing the Android APP home page of the application program to start the Android APP page of the application program.
Optionally, the system component Application for creating the Android frame of the Android system includes:
setting an Android application environment of an Android system;
starting a process service;
running a script executed during startup;
compiling an Android project management file of an Android system, and adding a configuration module in the project management file;
and creating the system component Application based on the project management file.
Optionally, the displaying a window background map on the Application Android APP based on the system component Application includes:
the method comprises the steps of setting attributes of a window background picture before the window background picture is displayed on a window of an Application program Android APP, wherein the setting is realized based on system component Application.
Optionally, the setting of the attribute of the window background image before displaying the window background image includes:
the theme style attributes of the window background image are set before the window background image of the application program Android APP is displayed.
Optionally, after the system is confirmed to start, starting the first process IDLE of the vehicle-end android system includes:
in the system starting process, a first process init for starting the Linux system is established;
starting a first process init and initializing a system environment;
creating a kthread of a kernel daemon process, and starting the kthread process; wherein the first process IDLE is a ktreaded process.
Optionally, creating a thread process, and initializing an application Android APP home page includes:
creating a thread for starting an Android APP home page of an application program;
scheduling the created application program Android APP home page starting thread, and calling an incubation application process Zygote to create a sub-process through a fork () function;
and sending the sub-process to a server object AMS in a process activity agent mode through an application program Android APP, and feeding the sub-process back to the application program Android APP for initialization through the server object AMS.
Optionally, sending the sub-process to the server object AMS, and feeding the sub-process back to the application program Android APP for initialization by the server object AMS further includes:
the server object AMS acquires the subprocess;
locking the starting activity of the current process;
and configuring the starting activity of the current process by the server side object AMS.
Optionally, after the system component Application of the Android system Android frame is created, and before the system component Application displays the window background map of the Application Android APP, the method further includes:
the system component Application creates a desktop starting process Launcher in the android system;
and configuring an application program Android APP window display icon to represent a window desktop based on the fact that the desktop starting process Launcher is triggered and started.
The application also provides an optimization starting system for Android APP page, which is applied to starting of the Android APP page of the application program of the vehicle-end Android system, and the optimization starting system comprises:
the Android system comprises a creating unit, a processing unit and a processing unit, wherein the creating unit is used for starting an Android system, starting a process of an Application program Android APP and creating a system component Application of an Android system Android frame;
the background image display unit is used for displaying a window background image on a window of the Android APP of the Application program based on system component Application;
the asynchronous processing unit is used for starting a first process IDLE of the vehicle-end Android system after the system is confirmed to start, creating a thread process and initializing an application program Android APP home page;
and the page starting unit is used for accessing the application program Android APP home page to start the application program Android APP page.
The present application also provides an electronic device, including:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions such that the computer readable instructions, when executed by the processor, implement the method described above.
The present application also provides a computer-readable storage medium comprising computer instructions which, when run on a device, cause the device to perform the method described above.
Compared with the prior art, the method has obvious advantages and beneficial effects. By means of the technical scheme, the method and the device have at least one of the following advantages and beneficial effects:
1. according to the Application, an Android system is started, a process of an Application program Android APP is started, and system component Application of an Android frame of the Android system is established; displaying a window background graph on a window of the Android APP of the Application program based on system component Application; after the system is confirmed to start, starting a first process IDLE of the vehicle-end Android system, creating a thread process, and initializing an application program Android APP home page; and accessing the Android APP home page of the application program to start the Android APP page of the application program. According to the method, after the system component Application enters the life cycle, asynchronous processing is carried out, and a thread is created; and/or setting an Android environment of the Android system and Background graph Background attribute, eliminating black screens and white screens when the Android application program is started, and reducing the time length for rendering and blocking the starting page.
2. The method and the device for displaying the window background image of the Android APP based on the Application program have the advantages that the attribute of the window background image is set before the window background image of the Android APP is displayed, and the setting is achieved based on system component Application. And starting system component Application, starting Property Service (Property Service) after partial initialization work of some script programs (SELi nux) related to Li nux system safety is completed, allowing a plurality of user services to operate the Property Service simultaneously, and simultaneously setting different Property types and styles of a window background image before the window of an Application program Android APP displays the window background image.
3. The method comprises the steps of creating a thread started by an application program Android APP home page; scheduling the created application program Android APP home page starting thread, and calling an incubation application process Zygote to create a sub-process through a fork () function; sending the sub-process to a server object AMS in a process activity agent mode through an application program Android APP, and feeding the sub-process back to the application program Android APP for initialization through the server object AMS; acquiring the subprocess from the server object AMS; locking the starting activity of the current process; and configuring the starting activity of the current process by the server object AMS. According to the method and the device, a thread is started through a created application program Android APP home page, an incubation application process Zygote is called to create a sub-process through a fork () function, the starting activity of the current process is locked by a server object AMS, the starting activity of the current process is configured by the server object AMS, and the setting, loading and/or rendering and the like are carried out when the sub-process is created in the thread and the starting activity is initialized by a complex page through creating multiple threads.
4. Before a window background picture is displayed on a window of an Application program Android APP through system component Application, a desktop starting process Launcher in an Android system is created through the system component Application; and configuring an application program Android APP window display icon to represent a window desktop based on the triggering and starting of the desktop starting process Launcher. By starting the Launcher application, displaying application icons in the working area, representing each working area as an abstract desktop, comprising a plurality of screens, wherein each screen comprises a plurality of cells, and placing the icons in each cell, the simultaneous asynchronous processing of Android APP page starting by a multi-thread multi-sub-process is realized, the black screen and white screen when the Android application program is started are avoided, and the setting, loading and/or rendering speed when the page is started for initialization is increased.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented in accordance with the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more clearly understood, the following preferred embodiments are specifically described below with reference to the accompanying drawings.
Drawings
Fig. 1 is a schematic flowchart of an optimized starting method for an Android APP page according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an optimized starting system for an Android APP page according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an optimized starting method for an Android APP page according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device for optimized starting of an Android APP page according to another embodiment of the present application.
Detailed Description
To further explain the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the embodiments, structures, features and effects thereof according to the present invention will be given with reference to the accompanying drawings and preferred embodiments.
The invention provides an optimized starting method for an Android APP page, which is applied to starting of an Android APP page of an application program of a vehicle-end Android system, and comprises the following steps:
s1, starting an Android system, starting a process of an Application program Android APP, and creating a system component Application of an Android frame of the Android system;
s2, displaying a window background picture on a window of the Application program Android APP based on system component Application;
s3, after the system is confirmed to start, starting a first process IDLE of the vehicle-end Android system, creating a thread process, and initializing an application program Android APP home page;
and S4, accessing the Android APP home page of the application program to start the Android APP page of the application program.
It should be noted that, S2, a window background map is displayed on the window of the Application Android APP based on the system component Application, and after the window background map is displayed, S3, after the system is confirmed to start, the first process IDLE of the vehicle-end Android system is started, a thread process is created, and an Application Android APP home page is initialized. Therefore, the user can display the previously preset window background image on the window of the Android APP of the Application program at the first time (namely the earliest time) after the system component Application is created and operated, the display timeliness of the window background image is improved, and the problems of black screen and white screen when the Android Application program is started are effectively solved.
In the embodiment of the Application, after the user creates and runs the system component Application, firstly S3, after the system is confirmed to start, starting a first process IDLE of the vehicle-end Android system, creating a thread process, and starting an activity initialization Application Android APP home page by the thread process; and accessing the Android APP home page of the application program to start the Android APP page of the application program. According to the method and the device, after the system component Application enters the life cycle, asynchronous processing is carried out, threads are created, the speed of setting, loading and/or rendering of initialization of the starting page is increased, and the time for rendering and blocking of the starting page is shortened.
In the embodiment of the Application, after the user creates and runs the system component Application, the window background map of the S2 based on the system component Application is displayed on the window of the Application Android APP; and S3, after the system is confirmed to start, starting a first process I DLE of the vehicle-end Android system, creating a thread process, and initializing a home page of an Application program Android APP, wherein the two can simultaneously run synchronously through multiple threads and run under different processes of different threads without interference and conflict, and the multithreading synchronous running mode ensures that on one hand, the resources required to be displayed by a window display window Background picture of the Application program Android are smaller, the preset window Background picture can be displayed on a window of the Android APP at the first time, and excessive resources of the active process after the system is started are not occupied, on the other hand, redundant resources can be used for starting the first process I DLE of the Android system at the vehicle end in the period of the window Background map displayed by the Android APP window of the Application program at the system component Application, a thread process is created, and the Android APP home page of the Application program is initialized.
Optionally, the system component Application for creating the Android frame of the Android system includes:
setting an Android application environment of an Android system;
starting a process service;
running a script executed during startup;
compiling an Android project management file of an Android system, and adding a configuration module in the project management file;
and creating the system component Application based on the project management file.
It should be noted that the Android application environment of the Android system is set to include an attribute system and a Linux environment variable for configuring and managing Android, the application environment name in the Android system is defined by the attribute system configuration for configuring and managing Android, the modification permission of the application environment name is limited and controlled, the Android project management file of the Android system is compiled, and a configuration module is added to the project management file, so that the Android application environment of the Android system is safe and more suitable for configuration management of a program.
Optionally, the displaying the window background map on the window of the Application Android APP based on the system component Application includes:
the method comprises the steps of setting attributes of a window background picture before the window background picture of an Application program Android APP is displayed, wherein the setting is realized based on system component Application.
It should be noted that, setting the attribute of the window background map may be set by using a layout file (xml file), or by using code (such as java code). For example, the Background color of the Background map is set by the function of the set Background Co l or. Xml may also be processed by the manifest file Android: the theme attribute is set, the setting mode can use the attribute value of the system, the theme setting can be customized, and the diversity of Android APP window background graph display attribute selection is improved.
Optionally, the setting of the attribute of the window background image before displaying the window background image includes:
the theme style attributes of the window background image are set before the window background image is displayed on a window of an application program Android APP.
It should be noted that, when customizing the theme setting, the custom setting may be performed through the style management file sty l e.xml, such as customizing the title bar background diagram. Similarly, a Wi window Tit l Backward Sty l e can be set to @ Sty l e/MyTit l e Background, and then a Background image displayed by the window of the application program Android APP is set in the MyTit l Backward.
Optionally, after the system is confirmed to start, starting the first process IDLE of the vehicle-end android system includes:
in the system starting process, a first process init for starting the Linux system is established;
starting a first process init and initializing a system environment;
creating a kthread of a kernel daemon process, and starting the kthread process; wherein the first process IDLE is a ktreaded process.
It should be noted that the creating of multithreading is directly or indirectly derived by creating a kernel daemon and starting a ktreaded process, and the ktreaded process is responsible for scheduling and managing the created multithreading so as to provide the efficiency of operating the Linux kernel and Android resources of the Android system.
Optionally, creating a thread process, and initializing an application Android APP home page includes:
creating a thread for starting an Android APP home page of an application program;
scheduling the created application program Android APP home page starting thread, and calling an incubation application process Zygote to create a sub-process through a fork () function;
and sending the sub-process to a server object AMS in a process activity agent mode through an application program Android APP, and feeding back the sub-process to the application program Android APP for initialization through the server object AMS.
It should be noted that zygate is a process of Android system Android, and is triggered and started by the init process of the first process of the user space, and manages a Java framework frame layer and services including application programs such as Activity management Manager and Power Manager by creating a SystemServer process. Calling the incubation application process Zygote to create a sub-process as a single thread through a fork () function, and the thread type avoids the situation that the created thread is locked or the states of a plurality of threads with the same name are inconsistent before and after the creation of the plurality of threads. A Binder mechanism is not adopted in Zygote cross-process communication, but cross-process communication is carried out through a local socket, so that the phenomenon that the resources of the child process of the parent process are not copied to the main thread of the child process during copying, and the deadlock condition is caused is avoided.
Optionally, the sending the sub-process to the server object AMS, and the server object AMS feeding back the sub-process to the application Android APP for initialization further includes:
the server side object AMS obtains the sub-process;
locking the starting activity of the current process;
and configuring the starting activity of the current process by the server object AMS.
It should be noted that the zygate hatches the System Service process System Server in the first process init, the System Service process System Server is responsible for starting and managing a Java Framework (Framework), and starts up the start activities of different current processes such as a Server object AMS (Activity Manager Service), a Package management mechanism PMS (Package Manager Service), a Window management WMS (Window Manager Service), and the like, to obtain the sub-processes actually executed in the System, and lock the sub-processes actually executed (for example, asynchronous processing, setting an Android application environment of an Android System included in a created thread, setting a Background graph Background attribute), and manage the start activities by a Package management mechanism; and then, configuring the starting activity of the current process by the server object AMS, and displaying the finished starting activity of the current process after interacting with the Android system Android APP.
Optionally, after the system component Application of the Android frame of the Android system is created, and before the window display window background map of the Android APP of the Application program, the system component Application further includes:
the system component Application creates a desktop starting process Launcher in the android system;
and configuring an application program Android APP window display icon to represent a window desktop based on the triggering and starting of the desktop starting process Launcher.
It should be noted that after the system component Application, a desktop start process Launcher (i.e. a desktop APP of an Android APP of an Application program Android APP of an intelligent terminal Android system) in the Android system is created through the system component Application, and processes for browsing Android APPs such as a directory Browser, an Email, a telephone directory Phone and the like can also be created through the system component Application, and each APP runs on at least one process. Or a desktop starting process Launcher and other Android system application Android APP processes are established in the Android system application Android APP layer through a Zygote process.
The application further provides an optimized starting system for Android APP pages, which is applied to starting of an application program Android APP page of a vehicle-end Android system, and as shown in fig. 2, fig. 2 is a schematic structural diagram of the optimized starting system for the Android APP pages. The optimized startup system 300 includes:
the creating unit 310 is used for starting an Android system, starting a process of an Application program Android APP, and creating a system component Application of an Android frame of the Android system;
the background map display unit 320 is configured to display a window background map on a window of the Application Android APP based on system component Application.
And the asynchronous processing unit 330 is configured to start a first process IDLE of the car-end Android system after the system is confirmed to start, create a thread process, and initialize an application program Android APP home page.
The page starting unit 340 is configured to access an application Android APP home page to start the application Android APP page.
It should be noted that the optimized starting system 300 for the Android APP page corresponds to the optimized starting method for the Android APP page, and is used for optimized starting of the Android APP page, specifically, as shown in fig. 3, the optimized starting system 300 starts a process, the Android system is started by the creating unit 310, the process of the Android APP of the Application program is started, and the system component Application of the Android frame of the Android system is created. When the system component Application enters a life cycle, the asynchronous processing unit 330 performs optimization processing, the asynchronous processing unit 330 confirms that the system component Application in the system starts to start and enters the life cycle, the first process IDLE of the vehicle-end Android system is started, a thread process is created, and an Application program Android APP home page is initialized. And displaying a window Background map on the window of the Application program Android APP through the Background map display unit 320 based on system component Application, setting a Background map Background attribute through setting an Android Application environment of the Android system, and triggering a welcome interface Background map of the Application program Android APP preset in a system process. Meanwhile, the asynchronous processing unit 330 enters a first process IDLE of the Android system, when multithreading processing is finished, starting activities of a current process finished by the multithreading asynchronous processing are interacted into the page starting unit 340 through the asynchronous processing unit 330, the Android APP home page of the application program is accessed through the page starting unit 340 to start the Android APP page of the application program, specifically, starting activity results of the current process finished by the multithreading asynchronous processing in the Android APP application program of the Android system are displayed through a desktop starting process Launcher in the Android system to enter the Android APP home page of the Android system, and a notification of finishing starting is fed back to a finishing process of the Android APP of the Android system.
In the embodiment of the application, the asynchronous processing is performed by the asynchronous processing unit 330, and the method further includes opening at least one Android system application program Android APP through a Package name Package and a class name Activity. The actual service code startActivity () function in the project does not directly create a process and pull up an Android APP process, but calls through an additional application attach application () and transmits a request to a Server object AMS of the System service System Server. After receiving the request from the client, the AMS notifies the zygate process to create a new process through a fork () function, and opens the APP executed by the user through the process. The life cycles of all the start activities in the executed application APP are uniformly scheduled by a Server object AMS (System Server process), and are completed in the self process of the executed target application APP. The specific steps and methods for the optimized starting of the Android APP page are referred to as an optimized starting method part, and are not described herein again.
The application further provides an electronic device, as shown in fig. 4, fig. 4 is a schematic structural diagram of the electronic device for optimizing starting of the Android APP page. The electronic device 400 includes:
a memory 410 for storing non-transitory computer-readable instructions 430; and
a processor 420 for executing the computer-readable instructions 430, such that the computer-readable instructions 430 when executed by the processor 420 implement the method described above.
The present application also provides a computer-readable storage medium comprising computer instructions which, when run on a device, cause the device to perform the method described above.
It should be noted that any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps in the process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be partially realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are exemplary and should not be construed as limiting the present application and that changes, modifications, substitutions and alterations in the above embodiments may be made by those of ordinary skill in the art within the scope of the present application.
Although the present application has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the application, and all changes, substitutions and alterations that fall within the spirit and scope of the application are to be understood as being included within the following description of the preferred embodiment.

Claims (10)

1. An optimized starting method for an Android APP page is applied to starting of an Android APP page of an application program of a vehicle-end Android system, and comprises the following steps:
s1, starting an Android system, starting a process of an Application program Android APP, and creating a system component Application of an Android frame of the Android system;
s2, displaying a window background picture in a window of the Android APP based on the system component Application;
s3, after the system is confirmed to start, starting a first process IDLE of the vehicle-end Android system, creating a thread process, and initializing an application program Android APP home page;
and S4, accessing the Android APP home page of the application program to start the Android APP page of the application program.
2. The method according to claim 1, wherein creating a system component Application of the Android framework of the Android system comprises:
setting an Android application environment of an Android system;
starting a process service;
running a script executed during startup;
compiling an Android project management file of an Android system, and adding a configuration module in the project management file;
and creating the system component Application based on the project management file.
3. The method according to claim 2, wherein the displaying of the window background map on the window of the Application Android APP based on the system component Application comprises:
the method comprises the steps of setting attributes of a window background picture before the window background picture is displayed on a window of an Application program Android APP, wherein the setting is realized based on system component Application.
4. The method according to claim 3, wherein after confirming that the system starts to be started, starting the first process IDLE of the vehicle-end android system comprises:
in the system starting process, a first process init for starting the Linux system is established;
starting the first process init and initializing a system environment;
creating a kernel daemon process kthreadd, and starting the kthreadd process; wherein the first process IDLE is a ktreaded process.
5. The method according to claim 4, wherein the step of creating a thread process and the step of initializing the Android APP home page of the application program comprises the following steps:
creating a thread for starting an Android APP home page of an application program;
scheduling the created application program Android APP home page starting thread, and calling an incubation application process Zygote to create a sub-process through a fork () function;
and sending the sub-process to a server object AMS in a process activity agent mode through an application program Android APP, and feeding back the sub-process to the application program Android APP for initialization through the server object AMS.
6. The method according to claim 5, wherein the step of sending the sub-process to a server object AMS and the step of feeding back the sub-process to an application Android APP for initialization by the server object AMS further comprises the steps of:
the server object AMS acquires the subprocess;
locking the starting activity of the current process;
and configuring the starting activity of the current process by the server object AMS.
7. The method as claimed in claim 1, wherein after the system component Application of the Android framework of the Android system is created and before the system component Application displays the window background map of the Android APP as an Application program, the method further comprises:
the system component Application creates a desktop starting process Launcher in the android system;
and configuring an application program Android APP window display icon to represent a window desktop based on the fact that the desktop starting process Launcher is triggered and started.
8. The utility model provides an optimize start-up system for Android APP page which characterized in that, is applied to the start-up of car end Android system application Android APP page, includes:
the Android system comprises a creating unit, a processing unit and a processing unit, wherein the creating unit is used for starting an Android system, starting a process of an Application program Android APP and creating a system component Application of an Android system Android frame;
the background image display unit is used for displaying a window background image on a window of the Android APP of the Application program based on system component Application;
the asynchronous processing unit is used for starting a first process IDLE of the vehicle-end Android system after the system is confirmed to start, creating a thread process and initializing a home page of an application program Android APP;
and the page starting unit is used for accessing the application program Android APP home page to start the application program Android APP page.
9. An electronic device, comprising:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions such that the computer readable instructions, when executed by the processor, implement the method of any of claims 1 to 7.
10. A computer readable storage medium comprising computer instructions which, when run on a device, cause the device to perform the method of any of claims 1 to 7.
CN202211566319.1A 2022-12-07 2022-12-07 Method, device, equipment and medium for starting page optimization based on Android APP Pending CN115934281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211566319.1A CN115934281A (en) 2022-12-07 2022-12-07 Method, device, equipment and medium for starting page optimization based on Android APP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211566319.1A CN115934281A (en) 2022-12-07 2022-12-07 Method, device, equipment and medium for starting page optimization based on Android APP

Publications (1)

Publication Number Publication Date
CN115934281A true CN115934281A (en) 2023-04-07

Family

ID=86655218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211566319.1A Pending CN115934281A (en) 2022-12-07 2022-12-07 Method, device, equipment and medium for starting page optimization based on Android APP

Country Status (1)

Country Link
CN (1) CN115934281A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234655A (en) * 2023-11-13 2023-12-15 成都阿加犀智能科技有限公司 Method, device, equipment and medium for running Linux desktop program based on android system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234655A (en) * 2023-11-13 2023-12-15 成都阿加犀智能科技有限公司 Method, device, equipment and medium for running Linux desktop program based on android system
CN117234655B (en) * 2023-11-13 2024-01-26 成都阿加犀智能科技有限公司 Method, device, equipment and medium for running Linux desktop program based on android system

Similar Documents

Publication Publication Date Title
CN109542744B (en) Method, device, storage medium and terminal for detecting abnormal starting problem of terminal
JP5887419B2 (en) Method and apparatus for taking a screen shot of an application screen in a mobile terminal
US8572618B2 (en) Event driven change injection and dynamic extensions to a business process execution language process
CN106775699B (en) Method and system for updating UI in asynchronous thread
US20150007165A1 (en) Software installation method and device
JPH06314189A (en) Console
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
US20130054951A1 (en) Software execution method and electronic device using the same
CN115934281A (en) Method, device, equipment and medium for starting page optimization based on Android APP
CN107341407B (en) Multi-android system implementation method based on terminal, storage medium and terminal
CN108304234B (en) Page display method and device
WO2020010725A1 (en) Method and apparatus for automatically synchronously refreshing browser, and computer device
CN110297624B (en) Implementation method of Widget system based on electron framework and television adopting system
CN111695827A (en) Business process management method and device, electronic equipment and storage medium
CN108958873B (en) Configuration method, device, medium and computer equipment for status bar immersive effect
CN110716943A (en) Missing data additional recording method and device, computer equipment and storage medium
CN113157324B (en) Starting method, device and equipment of computer equipment and readable storage medium
CN116627521A (en) Service module preloading method, skipping method, device and storage medium
KR102414206B1 (en) AUTOSAR standard application software component
CN113849233A (en) BIOS null boot entry deleting method, system, terminal and storage medium
CN112379804B (en) Application control method and electronic equipment
JP3961301B2 (en) Digital device, task management method and program thereof
CN112965436B (en) Single-thread multi-axis control method and related device
CN108733435B (en) Method and device for preventing application from triggering ANR (automatic neighbor discovery)
CN114116627A (en) Multimedia resource scanning method and device, storage medium and electronic equipment

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