From a22eff8ab5df0aabed8de1771c9f4a241dbdd209 Mon Sep 17 00:00:00 2001 From: Martin Horvath Date: Tue, 13 Nov 2018 17:27:52 +0100 Subject: [PATCH] GH-884 android: Embedding Android WebView doc looks broken The documentation of embedding cordova in native apps is outdated and this updated is considered as a quick update. --- .../en/dev/guide/platforms/android/webview.md | 66 ++++++++++--------- 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/www/docs/en/dev/guide/platforms/android/webview.md b/www/docs/en/dev/guide/platforms/android/webview.md index 3378d8f74f..5f09040779 100644 --- a/www/docs/en/dev/guide/platforms/android/webview.md +++ b/www/docs/en/dev/guide/platforms/android/webview.md @@ -38,53 +38,57 @@ legacy `CordovaActivity` component that pre-dates the 1.9 release. [cordova.apache.org](http://cordova.apache.org) and unzip its Android package. -2. Follow the instructions here to build your first cordova app [CreateYourFirstApp](https://cordova.apache.org/docs/en/8.x/guide/cli/index.html) +1. Follow the instructions here to build your first cordova app [CreateYourFirstApp](https://cordova.apache.org/docs/en/8.x/guide/cli/index.html) -3. Copy Cordova framework files **from platforms/android/CordovaLib/src/** to your android application directory at **/app/main/java**. Also copy additional Cordova framework files **from platforms/android/src/** to your android application directory at **/app/main/java**. +1. Copy Cordova framework files +``` +platforms/android/CordovaLib/src/.* to /app/main/java +platforms/android/src/** to /app/main/java +``` -4. Modify the layout file of the activity that shall host the Cordova view e.g. +1. Modify the layout file of the activity that shall host the Cordova view e.g. ``` - - - +