Confirmed users
414
edits
| Line 7: | Line 7: | ||
== Using GeckoView == | == Using GeckoView == | ||
# Download | # Download a recent GeckoView AAR from treeherder (mozilla-central tree). The AAR is available from the 'Android API15+ Gradle opt' job under the 'Bg' symbol. After clicking that, there is a link to 'geckoview-0.0.1.aar' in the bottom pane. | ||
# Add the GeckoView AAR to your Gradle / Android Studio project. In Android Studio you can add the .aar as follows: | |||
# | ## Move the geckoview aar to your project's 'libs' folder. | ||
# | ## Use the 'New Module' option under the 'File' menu. | ||
# | ## Import the .aar file. | ||
You can now use GeckoView your app by including the following in a layout XML file: | You can now use GeckoView your app by including the following in a layout XML file: | ||
| Line 30: | Line 26: | ||
<pre> | <pre> | ||
GeckoView geckoView = (GeckoView) findViewById(R.id.geckoview); | GeckoView geckoView = (GeckoView) findViewById(R.id.geckoview); | ||
geckoView. | geckoView.loadUri("http://mozilla.com"); | ||
</pre> | </pre> | ||