Arg410 / pebble-android-sdk

Android PebbleKit SDK to talk to the Pebble via Bluetooth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PebbleKit Android

Welcome to Pebble's official Android SDK!

Communication with Pebble

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.

Documentation

Examples

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.

Using PebbleKit Android

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).

Using PebbleKit Android with Maven

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>

Using PebbleKit Android with Android Studio and Gradle

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/" }
}

Using PebbleKit Android library directly

Finally you can also download the AAR file for PebbleKit Android and add it directly into your project.

Changelog

2.5.0 - August 2014

  • (Bumped version to 2.5 to follow firmware updates)
  • Automatic publication to Sonatype OSS Repo

2.0 - January 2014

  • First release of 2.0 SDK with the new DataLogging API

About

Android PebbleKit SDK to talk to the Pebble via Bluetooth