Adding Splash Screen to Trusted Web Activity with Android’s FileProvider

Learn how you can add a splash screen to your Trusted Web Activity (TWA) with Android’s FileProvider.

What is Trusted Web Activity?

Step 1: Add Logo

drawable/ic_splash

Step 2: Create an XML file

Adding “file_path.xml”
xml/file_path.xml

Step 3: Update AndroidManifest.xml

AndroidManifest.xml

Step 4: Update the Trusted Web Activity Library

build.gradle

Step 5: Party Time 🎉

Remote for Slides Lite Splash Screen

Google Developer Expert in Web Technologies | Front-end Web Developer | Making the web better with Preact, Polymer, Web Components, PWA & Firebase

Google Developer Expert in Web Technologies | Front-end Web Developer | Making the web better with Preact, Polymer, Web Components, PWA & Firebase