Misc samples for integrating with the Button SDK
Java
Permalink
Failed to load latest commit information.
SampleIntegration
gradle/wrapper
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
sample.jks
settings.gradle

README.md

Intro

This is a minimal implementation of the Android SDK, for more information see our Developer Docs.

Key Integration Points

AndroidManifest.xml

Please change android:value= in the manifest's meta-data tag. You can find your application ID in the Dashboard.

<meta-data android:name="com.usebutton.applicationid" android:value="app-0000000000000000"/>

activity_main.xml

Please change the value of button:buttonId to the button you created in the Dashboard.

Interesting files

  • SampleIntegration/build.gradle
    • For dependency setup.
  • SampleIntegration/src/main/java/com.usebutton.example.MainActivity.java
    • For customizing context (ride to/from).
  • SampleIntegration/src/main/java/com.usebutton.example.SampleApplication.java
    • For initializing the Button SDK.
  • SampleIntegration/src/main/res/layout/activity_main.xml
    • For setting the button:buttonId.
  • SampleIntegration/src/main/AndroidManifest.xml
    • For setting your application ID.