Skip to content

konsumer/PebblePointer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OVERVIEW

General instructions for installing, building and running the PebblePointer apps.

These directions are written with an Linux-as-dev-system perspective. This code was developed and tested on a Nexus-7 2nd Gen.

It is assumed that you have installed -- the Pebble SDK, and the Android SDK with Eclipse installed

PREPARE A WORKSPACE FOR PEBBLEPOINTER

  1. Create new workspace (optional) assume: ~/workspace mkdir ~/workspace cd ~/workspace

  2. Checkout PebblePointer from github git clone https://github.com/foldedtoad/PebblePointer.git

SETTING UP THE ANDROID PROJECT

  1. Start Eclipse and "Switch Workspace" to new workspace

    [File]-->[Switch Workspace]-->[other] { navigate to your workspace } [OK]

  2. Import PEBBLE_KIT project into Eclipse.

    [File]-->[Import]-->[Android]-->[Existing Android Code Into Workspace]-->[Next] [Browse] { pebble-dev/PebbleSDK-2.2/PebbleKit-Android/PebbleKit } [OK]

    Be sure "Project to Import" is checked for PEBBLE_KIT.

    [Finish]

    You should now see "PEBBLE_KIT" listed in Package Explorer in Eclipse.

  3. Import the Android app project.

    [File]-->[Import]-->[Android]-->[Existing Android Code Into Workspace]-->[Next] [Browse] { ~/workspace/PebblePointer/android-app } [OK]

    Be sure "Project to Import" is checked for MainActivity.

    [Finish]

    You should now see "MainActivity" listed in Package Explorer in Eclipse.

  4. If you see an red X by the src directory, then do the following

    In the "Package Explorer", select MainActivity so it is hi-lited.
    [Project]-->[Properties]-->[Android]
    If you see a red X in the Reference box, then
        Select and [Remove] it.
        [Add], select "PEBBLE_KIT", then [OK]
        [Apply] then [OK]
    

    Else skip this step.

  5. You should now be able to build and load (debug) the Android app on your target system.

BUILDING THE PEBBLE WATCH APP

  1. From a command shell, navigate to { ~/workspace/Pebble/watch-app }

  2. Review the "make.sh" file

  3. Run PEBBLE_IP=196.168.1.2 ./make.sh, which will do a build, load and go sequence for the watch app. Set PEBBLE_IP to the IP address of your target Android device which is bound to your Pebble watch.

About

Sending Pebble Watch accelerometer data to an Android app -- See wiki

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 58.5%
  • Java 38.1%
  • Python 2.1%
  • Shell 1.3%