Welcome to Pebble's official Android SDK!
On Android, all communication between apps and Pebble go through the official Pebble Android application via intents.
PebbleKit Android provides a convenience layer on top of those intents.
- Using PebbleKit Android describes how to use PebbleKit Android in your application.
- PebbleKit Android API Reference
All Pebble examples are now available on GitHub.
We provide several examples of Android application communicating with Pebble:
- The weather demo shows how to build an Android application that fetches the weather from the Internet and sends it to an app on Pebble (using the AppSync framework).
- The Sports demo shows how to build an Android application that starts and communicates with the Sports app embedded in all Pebbles.
- The Golf demo shows how to build an Android application that starts and communicates with the Golf app embedded in all Pebbles.
- The Ocean Survey demo shows how to build an Android application that leverages data logging to receive information pushed by a Pebble app.
As of version 2.5, PebbleKit Android is distributed as a library on the Sonatype OSS Repository.
Source code and library (.aar
) are also available.
You must install the official Pebble Android application to use PebbleKit Android.
PebbleKit Android requires Android SDK version 14 or higher (4.0 and above).
If you are using Maven, you can add the following dependency in your pom.xml
:
<dependency>
<groupId>com.getpebble</groupId>
<artifactId>pebblekit</artifactId>
<version>2.5.0</version>
<type>aar</type>
</dependency>
In Android Studio, or on any Gradle project, you can add PebbleKit Android in your app/build.gradle
file:
dependencies {
compile 'com.getpebble:pebblekit:2.5.0'
}
Make sure that you also include a reference to the Sonatype OSS Repository:
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/groups/public/" }
}
Finally you can also download the AAR file for PebbleKit Android and add it directly into your project.
- (Bumped version to 2.5 to follow firmware updates)
- Automatic publication to Sonatype OSS Repo
- First release of 2.0 SDK with the new DataLogging API