dronekit / dronekit-android

Android DroneKit implementation
http://android.dronekit.io/
262 stars 246 forks source link

Piggyback off of existing connection #24

Closed squilter closed 9 years ago

squilter commented 9 years ago

For dp-pebble I was hoping to wait for the user to connect using droidplanner. Then once the user connected, dp-pebble would automatically get connected as well.

Something that would allow me to call drone.connectExisting()

m4gr3d commented 9 years ago

@squilter the piggyback implementation is being added to version 1.1.8: https://github.com/DroidPlanner/3DRServices/pull/29

There's a two ways to piggy back off another app connection.

With that additional functionality, you might be able to remove the need for your app to run at boot, or all the time.

m4gr3d commented 9 years ago

@squilter btw, version 1.1.8 is not out yet, so you might need to run a dev version to test the changes mentioned above.

squilter commented 9 years ago

Thanks!

squilter commented 9 years ago

@ne0fhyk What's the best way to build this project? ./gradlew installDebug gives me

A problem occurred configuring project ':AidlLib'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

I couldn't figure out how to get it into Android Studio.

m4gr3d commented 9 years ago

@squilter you should import the project in android studio by selected the settings.gradle file in the root directory. The project will have several modules include AidlLib, ClientLib and ServiceApp.

ServiceApp is the module that needs to be compiled, and installed on the device. That module has a dependency on AidlLib so it'll be automatically linked in. You should be able to do that from within android studio, without needing to run gradlew manually.

squilter commented 9 years ago

Got it. Thanks.

On 1/24/2015 4:12 PM, Fredia Huya-Kouadio wrote:

@squilter https://github.com/squilter you should import the project in android studio by selected the |settings.gradle| file in the root directory. The project will have several modules include |AidlLib|, |ClientLib| and |ServiceApp|.

|ServiceApp| is the module that needs to be compiled, and installed on the device. That module has a dependency on |AidlLib| so it'll be automatically linked in. You should be able to do that from within android studio, without needing to run |gradlew| manually.

— Reply to this email directly or view it on GitHub https://github.com/DroidPlanner/3DRServices/issues/24#issuecomment-71337535.