Changes

Jump to: navigation, search

Mobile/GeckoView

221 bytes removed, 18:16, 30 June 2017
Using GeckoView
== Using GeckoView ==
# Download and unzip geckoview_library.zip and geckoview_assets.zip a recent GeckoView AAR from [http://ftp.mozilla.org/pub/mobile/nightly/latest-treeherder (mozilla-centraltree). The AAR is available from the 'Android API15+ Gradle opt' job under the 'Bg' symbol. After clicking that, there is a link to 'geckoview-android-api-15/ here]0.0.1.# Open Eclipse and import aar' in the GeckoView library project by doing File > Importbottom pane.# Set Add the imported GeckoView library project as a dependency in AAR to your app by adding it in the Gradle / Android section of your Studio project's properties as seen in . In Android Studio you can add the screenshot below. [[Fileaar as follows:Geckoview settings.png|800px]]# Copy the assets folder from # Move the geckoview_assets.zip geckoview aar to your appproject's assets 'libs' folder.# Add "manifestmerger.enabled=true" to your project# Use the 'New Module' option under the 'File's project.properties filemenuYour directory structure should look like ## Import the following: [[File:Geckoview project structure.png|250px]]aar file.
You can now use GeckoView your app by including the following in a layout XML file:
<pre>
GeckoView geckoView = (GeckoView) findViewById(R.id.geckoview);
geckoView.addloadUri("http://mozilla.com");
</pre>
Confirm
414
edits

Navigation menu