Modern WebView best practices (Android Dev Summit '18)

preview_player
Показать описание
Join the WebView team as they share the best and worst practices through many years and discuss how to use support library to promote best practices.

Presented by: Nate Fischer, Richard Coles & Toby Sargeant

#AndroidDevSummit event: Android Dev Summit 2018; re_ty: Publish; product: Android - Jetpack; fullname: Nate Fischer;
Рекомендации по теме
Комментарии
Автор

0:32 *WebView history*
Updatable since Lollipop
StackOverflow is outdated or wrong & Android API docs are also outdated
1:10 *What's new*
88.9% of devices is post-L, so has WebView updates, but modern APIs might not be visible
Enter WebView AndroidX library to enable these APIs
3:00 *Launching intents*
shouldOverrideUrlLoading may be unsafe; use user gestures
7:01 *Loading content*
8:33 %-encoding is tricky; use base64 encoding
10:12 Sample
10:55 Use loadDataWithBaseURL to get around same-origin restriction
12:30 HTTPS protocol is recommended for base URL; avoid custom schemes

Maarttttt
Автор

i would recommend whenever you present always with some sample code .

appstudio
Автор

is android webview still a standard way of building apps in 2019 ?

prosper
Автор

Hey, I want to open a new tab and want to get callback from old tab how can I do that

arunsinghrawat
Автор

How can i to make work the importation of a file with inputFile in a WebView?

jonilsoncoelho
Автор

Thanks for this video, I have one doubt according to google adsense and play store we can not use adsense ads in web view app but suppose I have adsense enable website so in my webview adsense ads will so and it is against both adsense and playstore.
So how to hide or disable adsense ads from web view and add admob ads because it is legal to use admob ads in web view for earn money.
Please help

jayrathor
Автор

where to add this code; i add it in mainactivity.kit but it denied

expertadvicestaymotivated
Автор

Why complicate all stuff with this new AndroidX? Why don't make the old android library working? I think you are not easy things for developers. I work as programmer for 20 years. I never see an eco system so complicated as Android.

EduardoBonfandini
Автор

Nothing to really see here . Terrible and largely useless talk. Hope this guy has upped his presentation skills.

Dstonephoto