~/talk

Android and the WebView

Talkat droidcon Italy 2019 · 2019-04-04..04-05· [android]
slides:none on file

Recommendation: avoid loading arbitrary remote sites in a WebView and prefer Custom Chrome Tabs for external pages; use WebViewCompat (AndroidX) and WebViewClientCompat to intercept requests, serve local files via AndroidPlatform dot net URLs and the Google local-web-server implementation on GitHub, capture auth redirects in shouldOverrideUrlLoading, disable file access and cache, enable web contents debugging, and use the standard MessageChannel API for bidirectional JS–Android messaging. An EPUB reader built with iframes, injected CSS and these techniques works reliably.

AI-written summary · about

  1. 0:00Intro
  2. 1:05What else would you really need?!?
  3. 1:58Use Chrome Custom Tabs instead!
  4. 2:48Customizing toolbar color
  5. 3:09Customizing transitions
  6. 4:25android.webkit.WebView
  7. 7:41Getting Started
  8. 13:56WebViewClient
  9. 16:04Capturing OAuth 2 auth code
  10. 17:45Loading local content safely
  11. 20:36Bridging Android and JavaScript (old version)
  12. 25:01Bridging Android and JavaScript (new version)
  13. 26:49Bridging Android and lavaScript (new version)
  14. 28:46ePub in 1 slide
  15. 29:38ePub structure
  16. 30:11Package file
  17. 32:21ePub scrolling
  18. 32:44Wrapping web content (HTML)
  19. 35:16Custom styling of web content (CSS)
  20. 35:51Demo!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.