This is my first Android project using Java and XML. (Which has been a process)
I'm having problems extending my LauncherActivity
to display an Offline-Screen
I have been following Offline-First Trusted Web Activities
When this didn't work I followed some other Stackoverflows Taking users to offline activity | No internet Layout
I noticed the key elements for this to work.
- adding
user network perms to Mani fest.
- calling the new
offline activity
extend theLauncher Activity
|Java file
. - registering
offline activity in the Mani fest.
- Error handling |
Java file
- adding helpers
ConnectivityManager
/ renderingLayout activity
|Java file & XML
when I run the build - I still get the Dinosaur.
I used the code demo from - Chrome Dev as referenced above and followed up by using code from Offline First Demo