CN106874043A - A kind of prioritization scheme of android applications cold start-up - Google Patents
A kind of prioritization scheme of android applications cold start-up Download PDFInfo
- Publication number
- CN106874043A CN106874043A CN201710038286.6A CN201710038286A CN106874043A CN 106874043 A CN106874043 A CN 106874043A CN 201710038286 A CN201710038286 A CN 201710038286A CN 106874043 A CN106874043 A CN 106874043A
- Authority
- CN
- China
- Prior art keywords
- cold start
- windowbackground
- android
- prioritization scheme
- xml
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of prioritization scheme of android applications cold start-up, including following key step:Step one:A drawable file of entitled shape_launch.xml is created in windowBackground property files folder in theme;Step 2:Topic style in modification windowBackground property file folders in styles.xml files;Step 3:Amended topic style is set to the Activity for starting.Several seconds even more long white screens of the appearance that experience is needed in first time cold start-up or blank screen time is applied to enter the problem of main interface present invention optimizes android, after user is clicked on app icons, customized pattern or logo figures can quickly be loaded out, app applications are caused to start sensation quickly in use, it is possible to strengthen the propagation of brand.
Description
Technical field
The present invention relates to Android application Starting mode, specifically a kind of prioritization scheme of android applications cold start-up.
Background technology
Cold start-up is the important Starting mode of Android application, in Android system, system be each operation application extremely
A process (multi-process application application multiple process) is distributed less.From process angle, cold start-up is exactly to apply preceding in startup,
There is no the people of the application and progress information in system (including Activity, Service etc.).Applied after such as device power-up
One-shot, system kills application process (such as:Installed System Memory be critical initiation kill and user actively produce kill) after
It is again started up.Under so naturally this mode, the startup time of application is more long,
During using cold start-up occurring, system needs to complete following three tasks:
1. start to load and start application;
2. after application starts, a starting-window for blank is shown;
3. application process information is created;
After system creation application process information, application will complete following operation:
1) object (work in such as Application) in initialization application;
2) main thread (UI threads) is started;
3) first Activity is created;
4) loading content view (Inflating);
5) position typesetting (Layingout) of the view on screen is calculated;
6) drawing view (draw).
Only when application completes first time drawing view, the blank background of system current presentation can just disappear, just can quilt
The content view of Activity is replaced.Namely this when, user could start interaction with our application.
, it is necessary to complete two establishment work after system creation application process information, respectively in the first step
Establishment Activity in Application and the 3rd step.Above-mentioned two establishment work is before drawing view.So,
In using customized Application classes and first Activity class, because the presence for creating work twice causes cold opening
The time of dynamic consumption is more long.
How to reduce the long problem of time loss in Cold Start, at present using more prioritization scheme be exactly
In Application and first Activity, the workload of creation method is reduced, so as to shorten the time of cold start-up.It is a kind of
Mode is some the third party SDK being embedded in the application, and some initial works are done in Application, and developer one
As take the form of lazy loading to remove this partial code, and it is real need to use third party SDK when initialized again, so
Can cause user that white screen or blank screen are can be appreciated that in cold start-up.It is exactly to be set by theme that another processing mode is more simple and crude
Put, white screen background during startup is not shown.Under cold start-up mode, user clicks on desktop icons, does not have any reaction, when crossing one section
Between using just opening.Merely just by white screen background transparent or stash in fact.User can so be caused in point
After hitting application, to wait for a period of time to start, so as to cause using experience extreme difference in use.
The content of the invention
It is an object of the invention to provide a kind of prioritization scheme of android applications cold start-up, to solve above-mentioned background skill
The problem proposed in art.
To achieve the above object, the present invention provides following technical scheme:
A kind of prioritization scheme of android applications cold start-up, mainly includes the following steps that:
Step one:An entitled shape_ is created in windowBackground property files folder in theme
The drawable files of launch.xml;
Step 2:Topic style in modification windowBackground property file folders in styles.xml files;
Step 3:Amended topic style is set to the Activity for starting.
Compared with prior art, the beneficial effects of the invention are as follows:
Applied present invention optimizes android needed in first time cold start-up several seconds of appearance of experience it is even more long
White screen or blank screen time could enter the problem of main interface, after user is clicked on app icons, can quickly load out customized sample
Formula or logo scheme, and cause app applications to start sensation quickly in use, it is possible to strengthen the propagation of brand.
Specific embodiment
Technical scheme is described in more detail with reference to specific embodiment.
A kind of prioritization scheme of android applications cold start-up, comprises the following steps:
Step one:An entitled shape_ is created in windowBackground property files folder in theme
The drawable files of launch.xml;Its specific code is as follows:
Step 2:Topic style in modification windowBackground property file folders in styles.xml files;Its
Specific code is as follows:
<Style name=" LaunchStyle " parent=" AppTheme ">
<Item name=" android:windowBackground">@drawable/shape_launch</item>
</style>
Step 3:Amended topic style is set to the Activity for starting;Its specific code is as follows:
Better embodiment of the invention is explained in detail above, but the present invention is not limited to above-mentioned embodiment party
Formula, in the ken that one skilled in the relevant art possesses, can also be on the premise of present inventive concept not be departed from
Various changes can be made.
Claims (1)
1. a kind of prioritization scheme of android applications cold start-up, it is characterised in that its key step is as follows:
Step one:An entitled shape_launch.xml is created in windowBackground property files folder in theme
Drawable files;
Step 2:Topic style in modification windowBackground property file folders in styles.xml files;
Step 3:Amended topic style is set to the Activity for starting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710038286.6A CN106874043A (en) | 2017-01-18 | 2017-01-18 | A kind of prioritization scheme of android applications cold start-up |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710038286.6A CN106874043A (en) | 2017-01-18 | 2017-01-18 | A kind of prioritization scheme of android applications cold start-up |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106874043A true CN106874043A (en) | 2017-06-20 |
Family
ID=59158438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710038286.6A Pending CN106874043A (en) | 2017-01-18 | 2017-01-18 | A kind of prioritization scheme of android applications cold start-up |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106874043A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107436786A (en) * | 2017-07-28 | 2017-12-05 | 深圳Tcl新技术有限公司 | Using starting guide method, apparatus and computer-readable recording medium |
CN107741869A (en) * | 2017-11-20 | 2018-02-27 | 青岛海信移动通信技术股份有限公司 | The startup method, apparatus and terminal device of application program |
CN107748686A (en) * | 2017-11-30 | 2018-03-02 | 广东欧珀移动通信有限公司 | Starting guide method, apparatus, storage medium and the intelligent terminal of application program |
CN108664282A (en) * | 2018-03-26 | 2018-10-16 | 广东欧珀移动通信有限公司 | Prevent from opening the method, apparatus and electronic equipment of application time-out under screen locking |
CN109117203A (en) * | 2018-07-13 | 2019-01-01 | 广州小鹏汽车科技有限公司 | A kind of Android APP starting velocity optimization method and system |
CN109511013A (en) * | 2018-11-09 | 2019-03-22 | 四川长虹电器股份有限公司 | The method of android system starting application |
CN109885340A (en) * | 2019-01-10 | 2019-06-14 | 北京字节跳动网络技术有限公司 | A kind of application program cold start-up accelerated method, device, electronic equipment |
CN111427630A (en) * | 2020-03-31 | 2020-07-17 | 北京金堤科技有限公司 | Cold start optimization method and device, electronic equipment and storage medium |
CN112035176A (en) * | 2020-07-15 | 2020-12-04 | 上海趣蕴网络科技有限公司 | Multi-packet application cold start optimization method and device |
CN113805987A (en) * | 2021-08-11 | 2021-12-17 | Tcl通讯(宁波)有限公司 | Application initialization display method and device, intelligent terminal and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102707973A (en) * | 2012-05-04 | 2012-10-03 | 惠州Tcl移动通信有限公司 | Application program starting method based on Android system and system |
US20150033219A1 (en) * | 2013-07-28 | 2015-01-29 | Oded Haim Breiner | Method and system for displaying a non-installed android application and for requesting an action from a non-installed android application |
CN105930213A (en) * | 2016-04-22 | 2016-09-07 | 北京小米移动软件有限公司 | Application running method and apparatus |
-
2017
- 2017-01-18 CN CN201710038286.6A patent/CN106874043A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102707973A (en) * | 2012-05-04 | 2012-10-03 | 惠州Tcl移动通信有限公司 | Application program starting method based on Android system and system |
US20150033219A1 (en) * | 2013-07-28 | 2015-01-29 | Oded Haim Breiner | Method and system for displaying a non-installed android application and for requesting an action from a non-installed android application |
CN105930213A (en) * | 2016-04-22 | 2016-09-07 | 北京小米移动软件有限公司 | Application running method and apparatus |
Non-Patent Citations (1)
Title |
---|
ZPP119: ""Android APP启动黑白屏问题解决方案"", 《HTTP://WWW.VOIDCN.COM/ARTICLE/P-KCCYYBZH-BPS.HTML》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107436786A (en) * | 2017-07-28 | 2017-12-05 | 深圳Tcl新技术有限公司 | Using starting guide method, apparatus and computer-readable recording medium |
CN107741869A (en) * | 2017-11-20 | 2018-02-27 | 青岛海信移动通信技术股份有限公司 | The startup method, apparatus and terminal device of application program |
CN107748686B (en) * | 2017-11-30 | 2021-03-12 | Oppo广东移动通信有限公司 | Application program starting optimization method and device, storage medium and intelligent terminal |
CN107748686A (en) * | 2017-11-30 | 2018-03-02 | 广东欧珀移动通信有限公司 | Starting guide method, apparatus, storage medium and the intelligent terminal of application program |
CN108664282A (en) * | 2018-03-26 | 2018-10-16 | 广东欧珀移动通信有限公司 | Prevent from opening the method, apparatus and electronic equipment of application time-out under screen locking |
CN108664282B (en) * | 2018-03-26 | 2021-07-02 | Oppo广东移动通信有限公司 | Method and device for preventing overtime of opening application under screen locking and electronic equipment |
CN109117203A (en) * | 2018-07-13 | 2019-01-01 | 广州小鹏汽车科技有限公司 | A kind of Android APP starting velocity optimization method and system |
CN109511013A (en) * | 2018-11-09 | 2019-03-22 | 四川长虹电器股份有限公司 | The method of android system starting application |
CN109885340A (en) * | 2019-01-10 | 2019-06-14 | 北京字节跳动网络技术有限公司 | A kind of application program cold start-up accelerated method, device, electronic equipment |
CN111427630A (en) * | 2020-03-31 | 2020-07-17 | 北京金堤科技有限公司 | Cold start optimization method and device, electronic equipment and storage medium |
CN111427630B (en) * | 2020-03-31 | 2024-03-22 | 北京金堤科技有限公司 | Cold start optimization method and device, electronic equipment and storage medium |
CN112035176A (en) * | 2020-07-15 | 2020-12-04 | 上海趣蕴网络科技有限公司 | Multi-packet application cold start optimization method and device |
CN113805987A (en) * | 2021-08-11 | 2021-12-17 | Tcl通讯(宁波)有限公司 | Application initialization display method and device, intelligent terminal and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106874043A (en) | A kind of prioritization scheme of android applications cold start-up | |
US9158434B2 (en) | User interface virtualization profiles for accessing applications on remote devices | |
CN105307030B (en) | Barrage display methods and device | |
CN105677371B (en) | Method and system for quickly generating software interface | |
CN103530018A (en) | Establishment method of widget interfaces in android operating system and mobile terminal | |
CN103546816A (en) | User interface processing and video playing method and user interface system | |
CN102789390A (en) | Method for realizing startup play of network video of Android system | |
US20120066634A1 (en) | Branded browser frame | |
WO2011116601A1 (en) | Device and method for implementing landscape/portrait screen switching of mobile terminal | |
CN106371845B (en) | The method and system of same type control are reused based on WPF by control pond | |
US9817966B2 (en) | Extension interaction with applications | |
US20160274776A1 (en) | System and method for modifying a look and feel of a graphical user interface for an application | |
US20170300204A1 (en) | Method and apparatus for manufacturing interactive electronic manual | |
Cappiello et al. | MobiMash: end user development for mobile mashups | |
TW201435713A (en) | Preserving layout of region of content during modification | |
Lerner | At the forge: twitter bootstrap | |
DE202015009262U1 (en) | OPTIMIZED HOSTED APPLICATIONS | |
CN105075279B (en) | Show equipment and its control method | |
CN102722357A (en) | A method and a device for icon display | |
CN106648732A (en) | DOS-based extraction and modification method for BIOS | |
WO2017027210A1 (en) | Providing semantic based document design | |
CN104793937A (en) | Start-up control method and device | |
CN103559050A (en) | Customization method for computer starting process and computer | |
US9389830B2 (en) | Combined multi-source input interface | |
US10579713B2 (en) | Application Markup language |
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: 20170620 |
|
RJ01 | Rejection of invention patent application after publication |