Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5FF3518F61 for ; Tue, 15 Mar 2016 23:11:34 +0000 (UTC) Received: (qmail 64682 invoked by uid 500); 15 Mar 2016 23:11:34 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 64637 invoked by uid 500); 15 Mar 2016 23:11:34 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 64343 invoked by uid 99); 15 Mar 2016 23:11:34 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2016 23:11:34 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C62772C1F73 for ; Tue, 15 Mar 2016 23:11:33 +0000 (UTC) Date: Tue, 15 Mar 2016 23:11:33 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9393) Embedded use case is undocumented for Cordova-Android 4.0.x MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15196441#comment-15196441 ] ASF GitHub Bot commented on CB-9393: ------------------------------------ Github user riknoll commented on a diff in the pull request: https://github.com/apache/cordova-docs/pull/544#discussion_r56257204 --- Diff: www/docs/en/dev/guide/platforms/android/webview.md --- @@ -29,106 +29,86 @@ components can communicate with each other, see Application Plugins. If you're unfamiliar with Android, you should first familiarize yourself with the [Android Platform Guide](index.html) and have the latest Android SDK installed before you attempt the more unusual development option -of embedding a WebView. Starting with Cordova 1.9, the Android -platform relies on a `CordovaWebView` component, which builds on a -legacy `CordovaActivity` component that pre-dates the 1.9 release. +of embedding a WebView. Starting with Cordova 4.0, the Android +platform relies on a `SystemWebView` component. 1. To follow these instructions, make sure you have the latest Cordova distribution. Download it from [cordova.apache.org](http://cordova.apache.org) and unzip its Android package. -1. Navigate to the Android package's `/framework` directory and run - `ant jar`. It creates the Cordova `.jar` file, formed as - `/framework/cordova-x.x.x.jar`. +1. Create a project in Android Studio -1. Copy the `.jar` file into the Android project's `/libs` directory. +1. Copy the framework directory into your project's root directory and name it +CordovaLib + +1. Add CordovaLib in your settings.gradle file + +include ':app', ':CordovaLib' --- End diff -- This line needs to be indented > Embedded use case is undocumented for Cordova-Android 4.0.x > ----------------------------------------------------------- > > Key: CB-9393 > URL: https://issues.apache.org/jira/browse/CB-9393 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 4.0.1 > Reporter: Joe Bowser > Assignee: Joe Bowser > Fix For: 5.0.0 > > > We broke the embedded webview use case for Android 4.0.x. and it's currently difficult to embed a webview without some gradle editing. We should probably work on getting the Embedded WebView use case to work out of the box for Gradle, and in the meantime document all the workarounds for getting an embedded webview in Android Studio to actually work. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org