This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I setup mbed Puck Central for Android?

I'm stuck in the Puck Central Tutorial, I have the zip from GitHub but can't seem to get any project to open.

Completed OK:

  • I completed the Puck Toolchain and Location tutorials, and my nRF51822-mkit is running fine.
  • I have installed Eclipse ADT and done the first tutorials successfully on the Nexus5 over USB (Hello World, Send Button). Did Eclipse ADT Install and first bits of Android Tutorial as in developer.android.com/.../index.html
  • I've used this Nexus5 with the Nordic nRF51822-EK HRS demo successfully so the BLE is good.

Now trying to do the Puck Central tutorial to get the app onto my Nexus5:

This zip has a large tree and I just can't find where/how to get Eclipse to open the Puck Central project, or if there is even a compiled Puck Central ready to load onto the phone.

Any help appreciated. I'm a real virgin with Eclipse, Apps, and BLE, but I must say I'm impressed so far with the mbed web based tools.

  • I was able to open the project using File->New->Project...

    Then expand Android and select Android Project from Existing Code.

  • Did get Puck Central running using Android Studio, notes below just FYI (Separate issue posted for Location Puck no advertising)

    1. See Puck Central Website for latest info:
    1. Get Puck Central Android from GitHub
    • github.com/.../puck-central-android
    • Get zip using button at right [Download ZIP]: puck-central-android-master.zip
    • Open zip, drag folder PuckCentral to your project area, and rename it with a version like: D:\AS\PuckCentralA
    1. Import to Android Studio:
    • Start Android Studio (Ensure No Project is Open)
    • Import Project, [Path] like D:\AS\PuckCentral
    • Click [Yes] for Language Level changes and Reload Now (API Changing).
    • Project should open cleanly. (working area shows “No files are open”). If it doesn't check for messages about missing SDK features and load them from SDK manager (API19...), then delete the failed project folder and get fresh from zip again to be safe.
    1. Build Make Project should give no errors
    2. Run Run ‘app’ should pop up window to connect to Android Phone connected by USB, with USB Debug enabled on the phone.
  • Thank you for answering your own question.

Related