Closed squilter closed 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.
ServiceManager
, you can query the list of connected apps by using ServiceManager#getConnectedApps()
. It'll return an array of bundle containing the same type of data as in the broadcast extras (example).With that additional functionality, you might be able to remove the need for your app to run at boot, or all the time.
@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.
Thanks!
@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.
@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.
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.
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()