[FMX] Android APP launches black screen optimization patch

Source: Internet
Author: User

Instructions for use

***************************************************
Android APP launches black screen optimization patch
Swish, Yangyxd 2016.01.16
version:1.0.0

QDAC Official group: 250530692
***************************************************

"Installation Method"
Double-click Setup.bat to install the patch file (backup will be done during installation)
Double-click Uninstall.bat to recover.

Compatibility
This patch package only supports Delphi 10.

"Action Steps"
1. Perform Setup.bat installation of modified version of Androidmanifest.xml and Fmx.jar
2. Copy the files from the splash directory to your project \android\release, replacing the original file. (debug mode is copied to \android\debug\, if your project has not been compiled yet, compile it once and the corresponding directory will be generated)
3. In Delphi 10, click on the menu Project->deployment, in the Open Deployment window, click the Add Files button on the toolbar, add the previous copy of the file.
4. In the deployment window, set the remote path for Splash_image_custom.xml, background.png to "res\drawable\". (image files can also be res\drawable-hdpi\, etc.)
5. In the deployment window, set the remote path of Styles_splash.xml to "res\values\".
6. Recompile the project.

"Principle of implementation"
Added a new activity to the app package to display the splash and then load the real content. This avoids the direct loading resulting in a long black screen.

"Precautions"
1.backgroud can be a. png, or a. jpg. You can change the backgroud.png to the image you need.
2. You can modify Splash_image_custom.xml to specify image size, image name, and other effects that are compatible with Java open Android. However, the added files need to refer to the instructions in the "steps" above to join the deployment window.
3. You can also specify other effects in the styles_splash.xml, or directly specify the image name, which will stretch the image to full-screen display.
4. In order to better develop Android, it is recommended to learn the configuration of these XML from Niang.
5. In a word, splash_image_custom.xml can only be regarded as a catalyst, other effects of their own modification.
6. This splash function is not related to Delphi, you use this, you can disable the Delphi comes with.

【】

Baidu Network disk: Http://pan.baidu.com/s/1dDUpEHr extract password: n5at

[FMX] Android APP launches black screen optimization patch

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.