Git Product home page Git Product logo

Comments (6)

m4gr3d avatar m4gr3d commented on August 9, 2024

@squilter the piggyback implementation is being added to version 1.1.8: #29

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

  • You can register a receiver to listen to the ACTION_VEHICLE_CONNECTION broadcast. That broadcast's extras contain the id of the app that connected, as well as the connection parameter used (minus the droneshare account info). Similarly, registering a receiver for ACTION_VEHICLE_DISCONNECTION will let you know when an app disconnects. Examples for this mode can be found in:
    1. broadcast registration in manifest file
    2. Receiver implementation
  • When your activity or service starts, and is connected to the 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.

from dronekit-android.

m4gr3d avatar m4gr3d commented on August 9, 2024

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

from dronekit-android.

squilter avatar squilter commented on August 9, 2024

Thanks!

from dronekit-android.

squilter avatar squilter commented on August 9, 2024

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

from dronekit-android.

m4gr3d avatar m4gr3d commented on August 9, 2024

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

from dronekit-android.

squilter avatar squilter commented on August 9, 2024

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
#24 (comment).

from dronekit-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.